PluginActionState
public struct PluginActionState : Codable
The states an action can show.
-
The default image for the state.
Declaration
Swift
public let image: String
-
The name of the state displayed in the dropdown menu in the Multi action.
For example Start or Stop for the states of the Game Capture Record action. If the name is not provided, the state will not appear in the Multi Action.
Declaration
Swift
public let name: String?
-
Default title.
Declaration
Swift
public let title: String?
-
Boolean to hide/show the title. True by default.
Declaration
Swift
public let showTitle: Bool?
-
Default title color.
Declaration
Swift
public let titleColor: String?
-
Default title vertical alignment.
Declaration
Swift
public let titleAlignment: Alignment?
-
Default font family for the title.
Declaration
Swift
public let fontFamily: FontFamily?
-
Default font style for the title.
Note
Some fonts might not support all values.Declaration
Swift
public let fontStyle: FontStyle?
-
Default font size for the title.
Declaration
Swift
public let fontSize: Int?
-
Boolean to have an underline under the title. False by default
Declaration
Swift
public let fontUnderline: Bool?
-
init(image:
name: title: showTitle: titleColor: titleAlignment: fontFamily: fontStyle: fontSize: fontUnderline: ) Declaration
Swift
public init(image: String, name: String? = nil, title: String? = nil, showTitle: Bool? = nil, titleColor: String? = nil, titleAlignment: Alignment? = nil, fontFamily: FontFamily? = nil, fontStyle: FontStyle? = nil, fontSize: Int? = nil, fontUnderline: Bool? = nil)