Edit

Share via


CPAlertActionStyle Enum

Definition

Enumerates the styles for a T:CarPlay.CPAlert object's action button.

[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 = 
Inheritance
CPAlertActionStyle
Attributes

Fields

Name Value Description
Default 0

The default style.

Cancel 1

The style used when providing a cancel action for the alert.

Destructive 2

The style used when the action is destructive, such as deleting data.

Applies to