语言

ActivityOptions.SetSplashScreenStyle(Int32) 方法

定义

设置打开活动的首选初始屏幕样式。

[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_ICONSplashScreen#SPLASH_SCREEN_STYLE_SOLID_COLOR

返回

此 Android.App.ActivityOptions 实例允许链接调用。

特性

注解

设置打开活动的首选初始屏幕样式。 这仅适用于尚未创建活动或进程时。

Android 参考。android.app.ActivityOptions.setSplashScreenStyle

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

适用于