Example usage for android.os UserManager DISALLOW_WALLPAPER

List of usage examples for android.os UserManager DISALLOW_WALLPAPER

Introduction

In this page you can find the example usage for android.os UserManager DISALLOW_WALLPAPER.

Prototype

String DISALLOW_WALLPAPER

To view the source code for android.os UserManager DISALLOW_WALLPAPER.

Click Source Link

Document

Hidden user restriction to disallow access to wallpaper manager APIs.

Usage

From source file:com.android.managedprovisioning.ProfileOwnerProvisioningService.java

private void setDefaultUserRestrictions() {
    mUserManager.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true,
            mManagedProfileOrUserInfo.getUserHandle());
}