RequestScreenCapturePermissionType

typealias RequestScreenCapturePermissionType = suspend () -> Map<String, Any?>?

Callback type for requesting screen capture permission. Returns a Map containing "resultCode" (Int) and "data" (platform Intent) on success, or null if permission was denied or not available.

On Android, the app should:

  1. Call MediaProjectionManager.createScreenCaptureIntent()

  2. Launch the intent for activity result

  3. Return mapOf("resultCode" to resultCode, "data" to data) on success

  4. Return null on failure or permission denial