setOptions method

  1. @override
Future<bool> setOptions(
  1. DaroSdkOptions options
)
override

SDK 옵션 설정

SDK 옵션을 설정합니다. 옵션 설정 성공 여부를 boolean으로 반환합니다.

options SDK 옵션 설정 Returns true if options setting succeeds, false otherwise

Implementation

@override
Future<bool> setOptions(DaroSdkOptions options) async {
  try {
    await _checkInitialized();
    final result = await methodChannel.invokeMethod<bool>(
      'setOptions',
      options.toMap(),
    );
    return result ?? false;
  } catch (e) {
    if (DaroSdk.logLevel case DaroLogLevel logLevel
        when logLevel.index <= DaroSdk.logLevel.index) {
      debugPrint('[DARO] setOptions failed: $e');
    }
    return false;
  }
}