Replies: 2 comments 3 replies
-
think you could try to use that with hyperloop |
Beta Was this translation helpful? Give feedback.
3 replies
-
To update this thread with the hyperloop code: const RestrictionsManager = require('android.content.RestrictionsManager');
const Context = require('android.content.Context');
const Activity = require('android.app.Activity');
const activity = new Activity($.index.activity);
var myRestrictionsMgr = RestrictionsManager.cast(activity.getSystemService(Context.RESTRICTIONS_SERVICE));
var appRestrictions = myRestrictionsMgr.getApplicationRestrictions();
console.log(appRestrictions.containsKey("keyName"); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
How can I access the RestrictionsManager object in Android from Titanium?
It's for getting current managed configurations on app.
Best regards
Troels
Beta Was this translation helpful? Give feedback.
All reactions