语言

ShortcutInfo.Builder.SetStartingTheme(Int32) 方法

定义

设置初始屏幕的主题资源 ID。

[Android.Runtime.Register("setStartingTheme", "(I)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetStartingTheme_IHandler", ApiSince=31)]
public virtual Android.Content.PM.ShortcutInfo.Builder SetStartingTheme(int themeResId);
[<Android.Runtime.Register("setStartingTheme", "(I)Landroid/content/pm/ShortcutInfo$Builder;", "GetSetStartingTheme_IHandler", ApiSince=31)>]
abstract member SetStartingTheme : int -> Android.Content.PM.ShortcutInfo.Builder
override this.SetStartingTheme : int -> Android.Content.PM.ShortcutInfo.Builder

参数

themeResId
Int32

要存储的初始屏幕主题资源标识符。

返回

分配起始主题标识符后,此生成器。

特性

注解

设置初始屏幕的主题资源 ID。

Android 参考。android.content.pm.ShortcutInfo.Builder.setStartingTheme

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于