共用方式為


ArchivedPackageInfo.SetUserDataFragile(String) Method

Definition

If true the user is prompted to keep the app's data on uninstall.

[Android.Runtime.Register("setUserDataFragile", "(Ljava/lang/String;)Landroid/content/pm/ArchivedPackageInfo;", "", ApiSince=35)]
public Android.Content.PM.ArchivedPackageInfo SetUserDataFragile (string value);
[<Android.Runtime.Register("setUserDataFragile", "(Ljava/lang/String;)Landroid/content/pm/ArchivedPackageInfo;", "", ApiSince=35)>]
member this.SetUserDataFragile : string -> Android.Content.PM.ArchivedPackageInfo

Parameters

value
String

Returns

Attributes

Remarks

If true the user is prompted to keep the app's data on uninstall. Specified by the &lt;manifest&gt; tag's android.R.styleable#AndroidManifestApplication_hasFragileUserData attribute.

Java documentation for android.content.pm.ArchivedPackageInfo.setUserDataFragile(java.lang.String).

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