FeatureActionsBuilder
public protocol FeatureActionsBuilder
The actions builder protocol defines the domain-specific-language used to declare the actions available on a feature.
-
Declare an action that is always available. This will bind the action and the feature, so that the action can be performed.
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : Action
-
Undocumented
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : Action, ActionType.InputType : ActivityCodable
-
Declare an action that is conditionally available. This will bind the action and the feature, so that the action can be performed.
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : Action
-
Undocumented
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : Action, ActionType.InputType : ActivityCodable
-
Publish an action that is always available. This will bind the action and the feature, so that the action can be performed. Published actions can be enumerated separately by the application to provide UI for them.
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : Action
-
Undocumented
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : Action, ActionType.InputType : ActivityCodable
-
Publishes an action that is conditionally available. This will bind the action and the feature, so that the action can be performed. Published actions can be enumerated separately by the application to provide UI for them.
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : Action
-
Undocumented
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : Action, ActionType.InputType : ActivityCodable
-
Undocumented
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : IntentAction
-
Undocumented
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : IntentAction, ActionType.InputType : ActivityCodable
-
Undocumented
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : IntentAction
-
Undocumented
Declaration
Swift
func declare<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : IntentAction, ActionType.InputType : ActivityCodable
-
Undocumented
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : IntentAction
-
Undocumented
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: StaticActionBinding<FeatureType, ActionType>) where FeatureType : FeatureDefinition, ActionType : IntentAction, ActionType.InputType : ActivityCodable
-
Undocumented
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : IntentAction
-
Undocumented
Declaration
Swift
func publish<FeatureType, ActionType>(_ action: ConditionalActionBinding<FeatureType, ActionType>) where FeatureType : ConditionalFeature, ActionType : IntentAction, ActionType.InputType : ActivityCodable