Added in API level 23

Callback


abstract class Callback
kotlin.Any
   ↳ android.telecom.RemoteConnection.VideoProvider.Callback

Callback class used by the RemoteConnection.VideoProvider to relay events from the Connection.VideoProvider.

Summary

Public constructors

Public methods
open Unit

Reports a change in the data usage (in bytes) received from the Connection.VideoProvider associated with a RemoteConnection.

open Unit

Reports a call session event received from the Connection.VideoProvider associated with a RemoteConnection.

open Unit

Reports a change in the capabilities of the current camera, received from the Connection.VideoProvider associated with a RemoteConnection.

open Unit
onPeerDimensionsChanged(videoProvider: RemoteConnection.VideoProvider!, width: Int, height: Int)

Reports a change in the peer video dimensions received from the Connection.VideoProvider associated with a RemoteConnection.

open Unit

Reports a session modification request received from the Connection.VideoProvider associated with a RemoteConnection.

open Unit
onSessionModifyResponseReceived(videoProvider: RemoteConnection.VideoProvider!, status: Int, requestedProfile: VideoProfile!, responseProfile: VideoProfile!)

Reports a session modification response received from the Connection.VideoProvider associated with a RemoteConnection.

open Unit
onVideoQualityChanged(videoProvider: RemoteConnection.VideoProvider!, videoQuality: Int)

Reports a change in the video quality received from the Connection.VideoProvider associated with a RemoteConnection.

Public constructors

Callback

Callback()

Public methods

onCallDataUsageChanged

Added in API level 23
open fun onCallDataUsageChanged(
    videoProvider: RemoteConnection.VideoProvider!,
    dataUsage: Long
): Unit

Reports a change in the data usage (in bytes) received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
dataUsage Long: The updated data usage (in bytes).

onCallSessionEvent

Added in API level 23
open fun onCallSessionEvent(
    videoProvider: RemoteConnection.VideoProvider!,
    event: Int
): Unit

Reports a call session event received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
event Int: The event.

onCameraCapabilitiesChanged

Added in API level 23
open fun onCameraCapabilitiesChanged(
    videoProvider: RemoteConnection.VideoProvider!,
    cameraCapabilities: VideoProfile.CameraCapabilities!
): Unit

Reports a change in the capabilities of the current camera, received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
cameraCapabilities VideoProfile.CameraCapabilities!: The changed camera capabilities.

onPeerDimensionsChanged

Added in API level 23
open fun onPeerDimensionsChanged(
    videoProvider: RemoteConnection.VideoProvider!,
    width: Int,
    height: Int
): Unit

Reports a change in the peer video dimensions received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
width Int: The updated peer video width.
height Int: The updated peer video height.

onSessionModifyRequestReceived

Added in API level 23
open fun onSessionModifyRequestReceived(
    videoProvider: RemoteConnection.VideoProvider!,
    videoProfile: VideoProfile!
): Unit

Reports a session modification request received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
videoProfile VideoProfile!: The requested video call profile.

onSessionModifyResponseReceived

Added in API level 23
open fun onSessionModifyResponseReceived(
    videoProvider: RemoteConnection.VideoProvider!,
    status: Int,
    requestedProfile: VideoProfile!,
    responseProfile: VideoProfile!
): Unit

Reports a session modification response received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
status Int: Status of the session modify request.
requestedProfile VideoProfile!: The original request which was sent to the peer device.
responseProfile VideoProfile!: The actual profile changes made by the peer device.

onVideoQualityChanged

Added in API level 23
open fun onVideoQualityChanged(
    videoProvider: RemoteConnection.VideoProvider!,
    videoQuality: Int
): Unit

Reports a change in the video quality received from the Connection.VideoProvider associated with a RemoteConnection.

Parameters
videoProvider RemoteConnection.VideoProvider!: The RemoteConnection.VideoProvider invoking this method.
videoQuality Int: The updated peer video quality.