ActivityOptions.SetSplashScreenStyle(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置打开活动的首选初始屏幕样式。
[Android.Runtime.Register("setSplashScreenStyle", "(I)Landroid/app/ActivityOptions;", "GetSetSplashScreenStyle_IHandler", ApiSince=33)]
public virtual Android.App.ActivityOptions SetSplashScreenStyle(int style);
[<Android.Runtime.Register("setSplashScreenStyle", "(I)Landroid/app/ActivityOptions;", "GetSetSplashScreenStyle_IHandler", ApiSince=33)>]
abstract member SetSplashScreenStyle : int -> Android.App.ActivityOptions
override this.SetSplashScreenStyle : int -> Android.App.ActivityOptions
参数
- style
- Int32
可以是或SplashScreen#SPLASH_SCREEN_STYLE_ICON
SplashScreen#SPLASH_SCREEN_STYLE_SOLID_COLOR
返回
- 属性
注解
设置打开活动的首选初始屏幕样式。 这仅适用于尚未创建活动或进程时。
适用于 . 的 android.app.ActivityOptions.setSplashScreenStyle(int)
Java 文档
本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。