roUserInfo
Provides access to the currently active user profile
Available since Roku OS 16.0.
The roUserInfo component provides access to the current active profile snapshot. Apps use it with the roProfile object it returns to determine the profile type that launched the app, and to deliver an appropriate in-app experience and data handling. See Kid & Teen Mode for the full integration.
This object is created with no parameters:
CreateObject("roUserInfo")
On devices running a Roku OS version earlier than 16.0,
CreateObject("roUserInfo")returnsinvalid. Check the result before calling any function on it.
Example
userInfo = CreateObject("roUserInfo")
if userInfo <> invalid
profile = userInfo.GetCurrentProfile()
profileType = profile.GetProfileType()
end ifSupported interfaces
Updated about 2 hours ago
Did this page help you?