android.content.RestrictionsManager

Here are the examples of the java api class android.content.RestrictionsManager taken from open source projects.

1. RuntimeConfig#hasRestrictionsProvider()

Project: SalesforceMobileSDK-Android
File: RuntimeConfig.java
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private boolean hasRestrictionsProvider(Context ctx) {
    RestrictionsManager restrictionsManager = (RestrictionsManager) ctx.getSystemService(Context.RESTRICTIONS_SERVICE);
    return restrictionsManager.hasRestrictionsProvider();
}

2. RuntimeConfig#getRestrictions()

Project: SalesforceMobileSDK-Android
File: RuntimeConfig.java
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
private Bundle getRestrictions(Context ctx) {
    RestrictionsManager restrictionsManager = (RestrictionsManager) ctx.getSystemService(Context.RESTRICTIONS_SERVICE);
    return restrictionsManager.getApplicationRestrictions();
}