android_setAlgoModelResourceFinder method

Future<int?> android_setAlgoModelResourceFinder(
  1. int finder,
  2. int deleter
)

@platform android @hidden for internal use only @detail api @author zhushufan.ref @brief Sets the video effects resource finder path and initializes video effects. @param finder ResourceFinder path @param deleter ResourceDeleter path @return - 0: Success. - –1000: The Effects SDK is not integrated. - –1001: This API is unavailable for your Effects SDK. - –1002: Your Effects SDK's version is incompatible. - < 0: Other error. See error code table for specific instructions.

Implementation

Future<int?> android_setAlgoModelResourceFinder(
    int finder, int deleter) async {
  $() => ($instance as $p_a.IVideoEffect)
      .setAlgoModelResourceFinder(finder, deleter);

  if (Platform.isAndroid) {
    return $();
  } else {
    throw UnsupportedError(
        'Not Support Platform ${Platform.operatingSystem}');
  }
}