Action
public struct Action
extension Action: Codable
extension Action: JSONDecodable
extension Action: DictionaryConvertible
extension Action: Equatable
Represent a mobile action sent 4D server.
-
Id of the action
Declaration
Swift
public let name: String
-
Localized name to display
Declaration
Swift
public let label: String?
-
Short localized name to display
Declaration
Swift
public let shortLabel: String?
-
Information about icon
Declaration
Swift
public let icon: String?
-
Preset data: edit, share, add
Declaration
Swift
public let preset: String?
-
Action style.
Declaration
Swift
public let style: ActionStyle?
-
Action style.
Declaration
Swift
public let parameters: [ActionParameter]?
-
Undocumented
Declaration
Swift
public init(name: String, label: String? = nil, shortLabel: String? = nil, icon: String? = nil, preset: String? = nil, style: ActionStyle? = nil, parameters: [ActionParameter] = [])
-
Return long label if any, then short label and finally name
Declaration
Swift
public var preferredLongLabel: String { get }
-
Return short label if any, then long label and finally name
Declaration
Swift
public var preferredShortLabel: String { get }
-
Return
true
if must be online.Declaration
Swift
public var isOnlineOnly: Bool { get }
-
Undocumented
Declaration
Swift
public init?(json: JSON)
-
Declaration
Swift
public var dictionary: DictionaryConvertible.Dico { get }
-
Declaration
Swift
public static func == (lhf: Action, rhf: Action) -> Bool
-
New request from action.
Declaration
Swift
public func newRequest(actionParameters: ActionParameters? = nil, contextParameters: ActionParameters? = nil, id: String) -> ActionRequest