Class RongOperationPermissionUtils

  • All Implemented Interfaces:

    
    public class RongOperationPermissionUtils
    
                        

    Utility to check whether SDK plugin or message click operations are permitted

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static boolean isMediaOperationPermit(Context context) Checks whether media operations (e.g., recording/playing voice messages) are permitted.
      static boolean isOnRequestHardwareResource() Checks whether any module is occupying audio/video hardware resources.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RongOperationPermissionUtils

        RongOperationPermissionUtils()
    • 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