语言

PackageInstaller.UpdateSessionAppLabel 方法

定义

重载

名称 说明
UpdateSessionAppLabel(Int32, String)

更新表示在特定会话中安装的应用的标签。

UpdateSessionAppLabel(Int32, ICharSequence)

更新表示在特定会话中安装的应用的标签。

UpdateSessionAppLabel(Int32, String)

更新表示在特定会话中安装的应用的标签。

public void UpdateSessionAppLabel(int sessionId, string? appLabel);
member this.UpdateSessionAppLabel : int * string -> unit

参数

sessionId
Int32

要更新的调用方拥有的会话的标识符。

appLabel
String

会话的显示标签作为字符串。

注解

更新表示在特定会话中安装的应用的标签。

Java文档android.content.pm.PackageInstaller.updateSessionAppLabel(int, java.lang.CharSequence)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

UpdateSessionAppLabel(Int32, ICharSequence)

更新表示在特定会话中安装的应用的标签。

[Android.Runtime.Register("updateSessionAppLabel", "(ILjava/lang/CharSequence;)V", "GetUpdateSessionAppLabel_ILjava_lang_CharSequence_Handler")]
public virtual void UpdateSessionAppLabel(int sessionId, Java.Lang.ICharSequence? appLabel);
[<Android.Runtime.Register("updateSessionAppLabel", "(ILjava/lang/CharSequence;)V", "GetUpdateSessionAppLabel_ILjava_lang_CharSequence_Handler")>]
abstract member UpdateSessionAppLabel : int * Java.Lang.ICharSequence -> unit
override this.UpdateSessionAppLabel : int * Java.Lang.ICharSequence -> unit

参数

sessionId
Int32

要更新的调用方拥有的会话的标识符。

appLabel
ICharSequence

要为会话发送的显示标签文本。

特性

例外

当调用方不拥有会话或会话无效时。

注解

更新表示在特定会话中安装的应用的标签。

Java文档android.content.pm.PackageInstaller.updateSessionAppLabel(int, java.lang.CharSequence)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于