roProfile

Represents a Roku user profile and returns its profile type

Available since Roku OS 16.0.

The roProfile component represents a Roku user profile. Apps do not create this object directly; it is returned by the roUserInfo.GetCurrentProfile() function.

Use the profile type to determine the appropriate in-app experience and data handling for the customer. See Kid & Teen Mode for the full integration.

When a customer switches profiles, apps running in the background are terminated, so your app is relaunched under the new profile. Query the profile on each launch rather than caching the values it returns.

Example

userInfo = CreateObject("roUserInfo")

if userInfo <> invalid
    profile = userInfo.GetCurrentProfile()

    if profile.GetProfileType() = "kids"
        ' The app was launched by a kid profile. Determine the appropriate
        ' in-app experience and data handling.
    end if
end if

Supported interfaces


Did this page help you?