다음을 통해 공유


DevicePolicyManager.ExtraProvisioningDisclaimerContent Field

Definition

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. This is parsed by android.text.Html#fromHtml(String) and displayed in a android.widget.TextView.

If a content: URI is passed, the intent should also have the flag Intent#FLAG_GRANT_READ_URI_PERMISSION and the uri should be added to the android.content.ClipData of the intent.

ApplicationInfo#FLAG_SYSTEM System apps can also insert a disclaimer by declaring an application-level meta-data in AndroidManifest.xml.

For example:

&lt;meta-data
                 android:name="android.app.extra.PROVISIONING_DISCLAIMER_CONTENT"
                 android:resource="@string/disclaimer_content"
            /&gt;

This must be accompanied with another extra using the key #EXTRA_PROVISIONING_DISCLAIMER_HEADER.

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.

Applies to