Receive lifecycle callbacks
The native SpyneShootDelegate / SpyneShootListener callbacks are forwarded onto the event channel. Subscribe once in Dart:
static const _eventChannel = EventChannel('com.spyne.spyne_sdk_flutter/spyne_events');
_eventChannel.receiveBroadcastStream().listen((event) {
final map = Map<String, dynamic>.from(event as Map);
switch (map['event'] as String) {
case 'onShootInitiated': break; // shootData, dealerVinId, mediaId, status
case 'onShootCompleted': break; // shootData, dealerVinId, mediaId, isReshoot
case 'onShootExit': break; // shootData, dealerVinId, mediaId
}
});dealerVinId is the id used by the webhook / GET media APIs; mediaId tracks the shoot session. See [Callbacks: Tracking the Shoot Lifecycle](Callbacks: Tracking the Shoot Lifecycle).
Updated about 1 hour ago
Did this page help you?
