DevicePolicyManager.ExtraProvisioningDisclaimerContent Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A Uri
extra pointing to disclaimer content.
[Android.Runtime.Register("EXTRA_PROVISIONING_DISCLAIMER_CONTENT", ApiSince=26)]
public const string ExtraProvisioningDisclaimerContent;
[<Android.Runtime.Register("EXTRA_PROVISIONING_DISCLAIMER_CONTENT", ApiSince=26)>]
val mutable ExtraProvisioningDisclaimerContent : string
Field Value
- Attributes
Remarks
A Uri
extra pointing to disclaimer content.
<h5>The following URI schemes are accepted:</h5> <ul> <li>content (android.content.ContentResolver#SCHEME_CONTENT
)</li> <li>android.resource (android.content.ContentResolver#SCHEME_ANDROID_RESOURCE
)</li> </ul>
Styled text is supported in the disclaimer content. The content is parsed by android.text.Html#fromHtml(String)
and displayed in a android.widget.TextView
.
If a content:
URI is passed, URI is passed, the intent should have the flag Intent#FLAG_GRANT_READ_URI_PERMISSION
and the uri should be added to the android.content.ClipData
of the intent too.
Use in Bundle #EXTRA_PROVISIONING_DISCLAIMERS
System app, i.e. application with ApplicationInfo#FLAG_SYSTEM
, can also insert a disclaimer by declaring an application-level meta-data in AndroidManifest.xml
. Must use it with #EXTRA_PROVISIONING_DISCLAIMER_HEADER
. Here is the example:
<meta-data
android:name="android.app.extra.PROVISIONING_DISCLAIMER_CONTENT"
android:resource="@string/disclaimer_content"
/>
Java documentation for android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DISCLAIMER_CONTENT
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.