Language

PackageInstaller.SessionParams.SetAppLabel Method

Definition

Overloads

Name Description
SetAppLabel(ICharSequence)

Optionally set a label representing the app being installed.

SetAppLabel(String)

Optionally set a label representing the app being installed.

SetAppLabel(ICharSequence)

Optionally set a label representing the app being installed.

[Android.Runtime.Register("setAppLabel", "(Ljava/lang/CharSequence;)V", "GetSetAppLabel_Ljava_lang_CharSequence_Handler")]
public virtual void SetAppLabel(Java.Lang.ICharSequence? appLabel);
[<Android.Runtime.Register("setAppLabel", "(Ljava/lang/CharSequence;)V", "GetSetAppLabel_Ljava_lang_CharSequence_Handler")>]
abstract member SetAppLabel : Java.Lang.ICharSequence -> unit
override this.SetAppLabel : Java.Lang.ICharSequence -> unit

Parameters

appLabel
ICharSequence

The optional app label text; null clears the stored label.

Attributes

Remarks

Optionally set a label representing the app being installed.

This value will be trimmed to the first 1000 characters.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setAppLabel(java.lang.CharSequence).

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

SetAppLabel(String)

Optionally set a label representing the app being installed.

public void SetAppLabel(string? appLabel);
member this.SetAppLabel : string -> unit

Parameters

appLabel
String

The optional app label as a string; null clears the stored label.

Remarks

Optionally set a label representing the app being installed.

This value will be trimmed to the first 1000 characters.

Java documentation for android.content.pm.PackageInstaller.SessionParams.setAppLabel(java.lang.CharSequence).

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