Class RongOperationPermissionUtils
-
- All Implemented Interfaces:
public class RongOperationPermissionUtilsUtility to check whether SDK plugin or message click operations are permitted
-
-
Constructor Summary
Constructors Constructor Description RongOperationPermissionUtils()
-
Method Summary
Modifier and Type Method Description static booleanisMediaOperationPermit(Context context)Checks whether media operations (e.g., recording/playing voice messages) are permitted. static booleanisOnRequestHardwareResource()Checks whether any module is occupying audio/video hardware resources. -
-
Method Detail
-
isMediaOperationPermit
static boolean isMediaOperationPermit(Context context)
Checks whether media operations (e.g., recording/playing voice messages) are permitted. Returns false if a VOIP call is in progress.
- Parameters:
context- context- Returns:
whether the operation is permitted
-
isOnRequestHardwareResource
static boolean isOnRequestHardwareResource()
Checks whether any module is occupying audio/video hardware resources.
- Returns:
whether resources are occupied
-
-
-
-