Compartilhar via


DrmManagerClient.ConvertData(Int32, Byte[]) Method

Definition

Converts the input data (content) that is part of a rights-protected file.

[Android.Runtime.Register("convertData", "(I[B)Landroid/drm/DrmConvertedStatus;", "GetConvertData_IarrayBHandler")]
public virtual Android.Drm.DrmConvertedStatus? ConvertData (int convertId, byte[]? inputData);
[<Android.Runtime.Register("convertData", "(I[B)Landroid/drm/DrmConvertedStatus;", "GetConvertData_IarrayBHandler")>]
abstract member ConvertData : int * byte[] -> Android.Drm.DrmConvertedStatus
override this.ConvertData : int * byte[] -> Android.Drm.DrmConvertedStatus

Parameters

convertId
Int32

Handle for the conversion session.

inputData
Byte[]

Input data that needs to be converted.

Returns

A DrmConvertedStatus object that contains the status of the data conversion, the converted data, and offset for the header and body signature. An application can ignore the offset because it is only relevant to the #closeConvertSession closeConvertSession() method.

Attributes

Remarks

Converts the input data (content) that is part of a rights-protected file. The converted data and status is returned in a DrmConvertedStatus object. This method should be called each time there is a new block of data received by the application.

Java documentation for android.drm.DrmManagerClient.convertData(int, byte[]).

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