configure method
Future<bool?>
configure({
- required String key,
- SmKitPoseModelChoice poseModelChoice = SmKitPoseModelChoice.adaptiveChoice,
- bool includesHighlights = false,
- void onHandle()?,
override
Implementation
@override
Future<bool?> configure({
required String key,
SmKitPoseModelChoice poseModelChoice = SmKitPoseModelChoice.adaptiveChoice,
bool includesHighlights = false,
void Function(SMKitStatus)? onHandle,
}) async {
final arg = {
'apiPublicKey': key,
'poseModelChoice': poseModelChoice.nativeValue,
'includesHighlights': includesHighlights,
};
bool? res = false;
try {
return await methodChannel.invokeMethod<bool?>('configure', arg);
} on PlatformException catch (e) {
debugPrint('PlatformException: ${e.code} ${e.message}');
}
return res;
}