Compartir a través de


Connection.VideoProvider.SetCallDataUsage(Int64) Method

Definition

Used to inform listening InCallService implementations when the data usage of the video associated with the current Connection has changed.

[Android.Runtime.Register("setCallDataUsage", "(J)V", "GetSetCallDataUsage_JHandler", ApiSince=23)]
public virtual void SetCallDataUsage (long dataUsage);
[<Android.Runtime.Register("setCallDataUsage", "(J)V", "GetSetCallDataUsage_JHandler", ApiSince=23)>]
abstract member SetCallDataUsage : int64 -> unit
override this.SetCallDataUsage : int64 -> unit

Parameters

dataUsage
Int64

The updated data usage (in bytes). Reported as the cumulative bytes used since the start of the call.

Attributes

Remarks

Used to inform listening InCallService implementations when the data usage of the video associated with the current Connection has changed.

This could be in response to a preview request via #onRequestConnectionDataUsage(), or as a periodic update by the VideoProvider. Where periodic updates of data usage are provided, they should be provided at most for every 1 MB of data transferred and no more than once every 10 sec.

Received by the InCallService via InCallService.VideoCall.Callback#onCallDataUsageChanged(long).

Java documentation for android.telecom.Connection.VideoProvider.setCallDataUsage(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to