Contents

shouldAcceptDirectInteraction(initialValue:handoffValue:)

Implement shouldAcceptDirectInteraction(initialValue:handoffValue) to provide the constants and initial configuration for the new direct 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 shouldAcceptDirectInteraction(initialValue: TabletopInteraction.Value, handoffValue: TabletopInteraction.Value?) -> TabletopInteraction.NewDirectInteractionIntent

Parameters

  • initialValue:

    The initial Value for 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)

See Also

Accepting interactions