listenCustomizedLifecycle static method
Implementation
static Future<dynamic> listenCustomizedLifecycle(MethodCall call) async {
switch (call.method) {
case 'onStart':
mLCustomInteractiveLivenessDetectionSetting?.customizedLifeCycleListener
?.call(CustomizedViewEvent.onStart);
break;
case 'onResume':
mLCustomInteractiveLivenessDetectionSetting?.customizedLifeCycleListener
?.call(CustomizedViewEvent.onResume);
break;
case 'onPause':
mLCustomInteractiveLivenessDetectionSetting?.customizedLifeCycleListener
?.call(CustomizedViewEvent.onPause);
break;
case 'onDestroy':
mLCustomInteractiveLivenessDetectionSetting?.customizedLifeCycleListener
?.call(CustomizedViewEvent.onDestroy);
mLCustomInteractiveLivenessDetectionSetting = null;
break;
case 'onStop':
mLCustomInteractiveLivenessDetectionSetting?.customizedLifeCycleListener
?.call(CustomizedViewEvent.onStop);
break;
}
}