Package io.rong.calllib

## Interface IRongReceivedCallListener

- All Implemented Interfaces:

      public interface IRongReceivedCallListener

  通话来电监听

- - ### Nested Class Summary

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

  - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---

  - ### Enum Constant Summary

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

  - ### Method Summary

    Modifier and Type | Method | Description
    --- | --- | ---
    `abstract void` | `onReceivedCall(RongCallSession callSession)` | 来电回调
    `abstract void` | `onCheckPermission(RongCallSession callSession)` | targetSDKVersion 大于等于 23 时检查权限的回调。当 targetSDKVersion 小于 23 的时候不需要实现。 在这个回调里用户需要使用Android6.0新增的动态权限分配接口requestCallPermissions通知用户授权， 然后在onRequestPermissionResult回调里根据用户授权或者不授权分别回调 RongCallClient.getInstance().onPermissionGranted()和 RongCallClient.getInstance().onPermissionDenied()来通知CallLib。 其中audio call需要获取Manifest.permission.RECORD_AUDIO权限； video call需要获取Manifest.permission.RECORD_AUDIO和Manifest.permission.

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

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

- - ### Constructor Detail

  - ### Method Detail

    - #### onReceivedCall

           abstract void onReceivedCall(RongCallSession callSession)

      来电回调

      Parameters:
        `callSession` - 通话实体

    - #### onCheckPermission

           abstract void onCheckPermission(RongCallSession callSession)

      targetSDKVersion 大于等于 23 时检查权限的回调。当 targetSDKVersion 小于 23 的时候不需要实现。 在这个回调里用户需要使用Android6.0新增的动态权限分配接口requestCallPermissions通知用户授权， 然后在onRequestPermissionResult回调里根据用户授权或者不授权分别回调 RongCallClient.getInstance().onPermissionGranted()和 RongCallClient.getInstance().onPermissionDenied()来通知CallLib。 其中audio call需要获取Manifest.permission.RECORD_AUDIO权限； video call需要获取Manifest.permission.RECORD_AUDIO和Manifest.permission.CAMERA两项权限。

      Parameters:
        `callSession` - 通话实体