Restricted Profiles on Android module

grant

Member
CX Code Contributor
3rd Party Module Dev
3rd Party Tool Dev
Joined
Nov 19, 2019
Messages
80
This module lets you use restricted profile settings in your game. Restricted Profiles are users on Android devices that have restrictions (like for parental controls, schools, employers, maybe kiosks, etc...) The module only exposes Boolean restrictions, but restricted profiles are a very powerful feature.

One download is for only one language. The other download is for both English and Spanish if your game needs support for both languages. Restricted profiles are normally not supported on phones. It's only on devices that allow multiple users to be created.

Function​

getBoolean:Bool(key:String)
Returns the state of a Boolean restriction with that key. The "key" is just a identifier. On Android 4.2.2 and older it always returns True.​
getBooleanExists:Bool(key:String)
Checks if a restriction has been set with the given key. The "key" is just a identifier. On Android 4.2.2 and older it always returns False.​

Demo: The included demo.cxs demonstrates the functions.

Install: extract the zip file inside the modules_ext folder inside your Cerberus X installation folder. You will need to add a file to Cerberus X. Read the included install.txt.

License: zlib/libpng (see included license.txt)
 

Attachments

  • RestrictedProfiles-module-V1.0-for-Cerberus-X-for-Android-English-and-Spanish.zip
    5 KB · Views: 26
  • RestrictedProfiles-module-V1.0-for-Cerberus-X-for-Android.zip
    4.6 KB · Views: 27

MikeHart

Administrator
3rd Party Module Dev
3rd Party Target Dev
3rd Party Tool Dev
Joined
Jun 19, 2017
Messages
3,394
Interesting. And I can see that it could be usefull.
 
Top Bottom