xref: /aosp_15_r20/development/samples/browseable/AppRestrictionSchema/_index.jd (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
1*90c8c64dSAndroid Build Coastguard Worker
2*90c8c64dSAndroid Build Coastguard Workerpage.tags="AppRestrictionSchema"
3*90c8c64dSAndroid Build Coastguard Workersample.group=Admin
4*90c8c64dSAndroid Build Coastguard Worker@jd:body
5*90c8c64dSAndroid Build Coastguard Worker
6*90c8c64dSAndroid Build Coastguard Worker<p>
7*90c8c64dSAndroid Build Coastguard Worker
8*90c8c64dSAndroid Build Coastguard Worker            This sample shows how to use app restrictions. This application has one boolean
9*90c8c64dSAndroid Build Coastguard Worker            restriction with a key \"can_say_hello\" that defines whether the only feature of this
10*90c8c64dSAndroid Build Coastguard Worker            app (press the button to show \"Hello\" message) is enabled or disabled. Use
11*90c8c64dSAndroid Build Coastguard Worker            AppRestrictionEnforcer sample to toggle the restriction.
12*90c8c64dSAndroid Build Coastguard Worker
13*90c8c64dSAndroid Build Coastguard Worker        </p>
14