Contents

ARKitSession.Event.dataProviderStateChanged(dataProviders:newState:error:)

An event that represents a state change of one or more of the data providers associated with a session.

Declaration

case dataProviderStateChanged(dataProviders: [any DataProvider], newState: DataProviderState, error: ARKitSession.Error?)

Parameters

  • dataProviders:

    The data providers whose state has changed.

  • newState:

    The new data provider state, which triggered the event.

  • error:

    An ARKitSession.Error associated with the state change, if any. This is only applicable to DataProviderState.stopped updates.