PasteboardAction
@available(tvOS, unavailable)
public final class PasteboardAction : AirshipAction
Sets the pasteboard’s string.
Expected argument values: String or an Object with the pasteboard’s string under the ‘text’ key.
Valid situations: ActionSituation.launchedFromPush
,
ActionSituation.webViewInvocation
, ActionSituation.manualInvocation
,
ActionSituation.foregroundInteractiveButton
, ActionSituation.backgroundInteractiveButton
,
and ActionSituation.automation
Result value: The arguments value.
-
Default names - “clipboard_action”, “^c”
Declaration
Swift
public static let defaultNames: [String]
-
accepts(arguments:
Asynchronous) Declaration
Swift
public func accepts(arguments: ActionArguments) async -> Bool
-
perform(arguments:
Asynchronous) Declaration
Swift
public func perform(arguments: ActionArguments) async throws -> AirshipJSON?