次の方法で共有


LauncherApps.ArchiveCompatibilityParams.SetEnableUnarchivalConfirmation Method

Definition

If true, the user is shown a confirmation dialog when they click an archived app, which explains that the app will be downloaded and restored in the background.

[Android.Runtime.Register("setEnableUnarchivalConfirmation", "(Z)V", "GetSetEnableUnarchivalConfirmation_ZHandler", ApiSince=35)]
public virtual void SetEnableUnarchivalConfirmation (bool enableUnarchivalConfirmation);
[<Android.Runtime.Register("setEnableUnarchivalConfirmation", "(Z)V", "GetSetEnableUnarchivalConfirmation_ZHandler", ApiSince=35)>]
abstract member SetEnableUnarchivalConfirmation : bool -> unit
override this.SetEnableUnarchivalConfirmation : bool -> unit

Parameters

enableUnarchivalConfirmation
Boolean
Attributes

Remarks

If true, the user is shown a confirmation dialog when they click an archived app, which explains that the app will be downloaded and restored in the background. True by default.

Launchers might want to disable this operation if they provide sufficient, alternative user guidance to highlight that an unarchival is starting and ongoing once an archived app is tapped. E.g., this could be achieved by showing the unarchival progress around the icon.

Java documentation for android.content.pm.LauncherApps.ArchiveCompatibilityParams.setEnableUnarchivalConfirmation(boolean).

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