Share via


CPAlertActionStyle 枚举

定义

枚举 CarPlay.CPAlert 对象的操作按钮的样式。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 12, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.MacOSX, ObjCRuntime.PlatformArchitecture.All, null)]
public enum CPAlertActionStyle
type CPAlertActionStyle = 
继承
CPAlertActionStyle
属性

字段

Cancel 1

为警报提供取消操作时使用的样式。

Default 0

默认样式。

Destructive 2

操作具有破坏性时使用的样式,例如删除数据。

适用于