shouldAcceptIndirectInteraction(initialValue:handoffValue:)
Implement shouldAcceptIndirectInteraction(initialValue:handoffValue) to provide the constants and initial configuration for the new indirect interaction, and to decide if the new interaction should be accepted or rejected. If the function is not implemented, the default implementation will be used, which will call into the more generic shouldAcceptInteraction(initialValue:handoffValue).
Declaration
func shouldAcceptIndirectInteraction(initialValue: TabletopInteraction.Value, handoffValue: TabletopInteraction.Value?) -> TabletopInteraction.NewIndirectInteractionIntentParameters
- initialValue:
The initial
Valuefor this interaction, using the default configuration and constants. - handoffValue:
If not
nil, this interaction is trying to take control of an equipment already controlled by another interaction, causing a “handoff” of the equipment. The value provides the most recent data of the interaction that is currently controlling the equipment.
Return Value
The intent that describes the action to be taken on this new interaction (reject or accept with constants and configuration)