# Other Methods

# 1. Get SDK Version Number

/// Get the runtime version number
Future<String> sdkVersion()

# 2. Change User ID

Future<Map<String, dynamic>> changeUserId(String userId)

# 3. Set WebView Bounce Effect

/// Bounce setting for WKWebView, only effective on iOS
void webViewBounces(bool bounces)

# 4. Set Mini-Program Opening Animation Effect

/// Set Mini-Program transition animation, only effective on Android
Future setActivityTransitionAnim(Anim anim)

# 5. Move Mini-Program to Foreground of Task Stack

/// Move the last opened Mini-Program currently running to the foreground of the task stack, only effective on Android
void moveCurrentAppletToFront()

# 6. Convert Mini-Program Path to Absolute Path

  /// Convert finfile path to absolute path
  /// [appId] Mini-Program ID (optional)
  /// [finFilePath] finfile path, e.g., "finfile://tmp_test.txt"
  /// [needFileExist] Whether the file needs to exist (default true)
  ///
  /// Return value format:
  /// ```
  /// {
  ///   "retMsg": "ok",
  ///   "success": true,
  ///   "data": {
  ///     "path": "/var/mobile/Containers/Data/Application/.../tmp/test.txt"  // Actual absolute path
  ///   }
  /// }
  /// ```
  Future<Map<String, dynamic>> getFinFileAbsolutePath(
    String finFilePath,
    {String? appId, bool needFileExist = true}
  ) 

# 7. Generate finfile Protocol Path

  /// Generate finfile protocol path
  /// [fileName] File name, e.g., "test.txt"
  /// [pathType] Path type:
  ///   - FinFilePathType.TMP: Temporary directory
  ///   - FinFilePathType.USR: User directory
  ///
  /// Return value format:
  /// ```
  /// {
  ///   "retMsg": "ok",
  ///   "success": true,
  ///   "data": {
  ///     "path": "finfile://usr/test.txt"
  ///   }
  /// }
  /// ```
  Future<Map<String, dynamic>> generateFinFilePath(
    String fileName,
    FinFilePathType pathType
  ) 
© FinClip with ❤ , Since 2017