restrictionReason

Restriction reason.

Contains the reason why access to a certain object must be restricted. Clients are supposed to deny access to the channel if the platform field is equal to all or to the current platform (ios, android, wp, etc.). Platforms can be concatenated (ios-android, ios-wp), unknown platforms are to be ignored. The text is the error message that should be shown to the user.

Constructor schema is available as of layer 105. Switch ยป

Parameters

Name Type Description
platform string Platform identifier (ios, android, wp, all, etc.), can be concatenated with a dash as separator (android-ios, ios-wp, etc)
reason string Restriction reason (porno, terms, etc.)
text string Error message to be shown to the user

Type

RestrictionReason