Contents

shouldAcceptInteraction(initialValue:handoffValue:)

Implement shouldAcceptInteraction(initialValue:handoffValue) to provide the initial configuration for new interactions, and to decide if a new interaction should be accepted or rejected. If this function is not implemented, the default implementation will be used which will reject all handoff interactions and will accept all other interactions providing the default configuration.

Declaration

func shouldAcceptInteraction(initialValue: TabletopInteraction.Value, handoffValue: TabletopInteraction.Value?) -> TabletopInteraction.NewInteractionIntent

Parameters

  • initialValue:

    The initial Value for this interaction, calculated 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 configuration)

See Also

Accepting interactions