setEnableAsyncFetchMeta method

FutureOr<void> setEnableAsyncFetchMeta(
  1. bool asyncFetchMeta
)

Implementation

FutureOr<void> setEnableAsyncFetchMeta(bool asyncFetchMeta) {
  if (Platform.isAndroid) {
    return ($instance as $p_a.BDVideoUploader).setGetMetaMode(
      asyncFetchMeta ? 1 : 0,
    );
  } else if (Platform.isIOS) {
    return ($instance as $p_i.BDVideoUploaderClient).setGetMetaMode(
      asyncFetchMeta
          ? $p_i.BDVideoUploadGetMetaMode.BDVideoUploadGetMetaModeAsync
          : $p_i.BDVideoUploadGetMetaMode.BDVideoUploadGetMetaModeSync,
    );
  }
}