Package io.rong.imkit.manager

## Class MessageProviderPermissionHandler

- All Implemented Interfaces:

      public class MessageProviderPermissionHandler

  Created by yanke on 2021/8/30

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `public final static int` | `REQUEST_CODE_ITEM_PROVIDER_PERMISSIONS` |

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

    Enum Constants
    Enum Constant | Description
    --- | ---

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `static MessageProviderPermissionHandler` | `getInstance()` |
    `boolean` | `handleMessageClickPermission(UiMessage uiMessage, Fragment fragment)` |
    `void` | `addMessageContent(Class<out MessageContent> messageContentClass, Array<String> permissions)` |
    `void` | `onRequestPermissionsResult(Activity activity, Array<String> permissions, Array<int> grantResults)` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

  - ### Method Detail

    - #### getInstance

           static MessageProviderPermissionHandler getInstance()

    - #### handleMessageClickPermission

           boolean handleMessageClickPermission(UiMessage uiMessage, Fragment fragment)

    - #### addMessageContent

           void addMessageContent(Class<out MessageContent> messageContentClass, Array<String> permissions)

    - #### onRequestPermissionsResult

           void onRequestPermissionsResult(Activity activity, Array<String> permissions, Array<int> grantResults)