[]Struct jni_android_sys::android::drm::DrmManagerClient

#[repr(transparent)]
pub struct DrmManagerClient(_);

public class DrmManagerClient

Required feature: "android-drm-DrmManagerClient"

Methods

impl DrmManagerClient

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, DrmManagerClient>, Local<'env, Throwable>>
[src]

DrmManagerClient

Required features: "android-content-Context"

pub fn close<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn release<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Deprecated

pub fn setOnInfoListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmManagerClient_OnInfoListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnInfoListener

Required features: "android-drm-DrmManagerClient_OnInfoListener"

pub fn setOnEventListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmManagerClient_OnEventListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnEventListener

Required features: "android-drm-DrmManagerClient_OnEventListener"

pub fn setOnErrorListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmManagerClient_OnErrorListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnErrorListener

Required features: "android-drm-DrmManagerClient_OnErrorListener"

pub fn getAvailableDrmEngines<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<String, Throwable>>>, Local<'env, Throwable>>
[src]

getAvailableDrmEngines

Required features: "java-lang-String"

pub fn getConstraints_String_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32
) -> Result<Option<Local<'env, ContentValues>>, Local<'env, Throwable>>
[src]

getConstraints

Required features: "android-content-ContentValues", "java-lang-String"

pub fn getMetadata_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, ContentValues>>, Local<'env, Throwable>>
[src]

getMetadata

Required features: "android-content-ContentValues", "java-lang-String"

pub fn getConstraints_Uri_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: i32
) -> Result<Option<Local<'env, ContentValues>>, Local<'env, Throwable>>
[src]

getConstraints

Required features: "android-content-ContentValues", "android-net-Uri"

pub fn getMetadata_Uri<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, ContentValues>>, Local<'env, Throwable>>
[src]

getMetadata

Required features: "android-content-ContentValues", "android-net-Uri"

pub fn saveRights<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmRights>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

saveRights

Required features: "android-drm-DrmRights", "java-lang-String"

pub fn canHandle_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]

canHandle

Required features: "java-lang-String"

pub fn canHandle_Uri_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]

canHandle

Required features: "android-net-Uri", "java-lang-String"

pub fn processDrmInfo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmInfo>>
) -> Result<i32, Local<'env, Throwable>>
[src]

processDrmInfo

Required features: "android-drm-DrmInfo"

pub fn acquireDrmInfo<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmInfoRequest>>
) -> Result<Option<Local<'env, DrmInfo>>, Local<'env, Throwable>>
[src]

acquireDrmInfo

Required features: "android-drm-DrmInfo", "android-drm-DrmInfoRequest"

pub fn acquireRights<'env>(
    &'env self,
    arg0: impl Into<Option<&'env DrmInfoRequest>>
) -> Result<i32, Local<'env, Throwable>>
[src]

acquireRights

Required features: "android-drm-DrmInfoRequest"

pub fn getDrmObjectType_String_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getDrmObjectType

Required features: "java-lang-String"

pub fn getDrmObjectType_Uri_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getDrmObjectType

Required features: "android-net-Uri", "java-lang-String"

pub fn getOriginalMimeType_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getOriginalMimeType

Required features: "java-lang-String"

pub fn getOriginalMimeType_Uri<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getOriginalMimeType

Required features: "android-net-Uri", "java-lang-String"

pub fn checkRightsStatus_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

checkRightsStatus

Required features: "java-lang-String"

pub fn checkRightsStatus_Uri<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>
) -> Result<i32, Local<'env, Throwable>>
[src]

checkRightsStatus

Required features: "android-net-Uri"

pub fn checkRightsStatus_String_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

checkRightsStatus

Required features: "java-lang-String"

pub fn checkRightsStatus_Uri_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]

checkRightsStatus

Required features: "android-net-Uri"

pub fn removeRights_String<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

removeRights

Required features: "java-lang-String"

pub fn removeRights_Uri<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>
) -> Result<i32, Local<'env, Throwable>>
[src]

removeRights

Required features: "android-net-Uri"

pub fn removeAllRights<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn openConvertSession<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<i32, Local<'env, Throwable>>
[src]

openConvertSession

Required features: "java-lang-String"

pub fn convertData<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env ByteArray>>
) -> Result<Option<Local<'env, DrmConvertedStatus>>, Local<'env, Throwable>>
[src]

convertData

Required features: "android-drm-DrmConvertedStatus"

pub fn closeConvertSession<'env>(
    &'env self,
    arg0: i32
) -> Result<Option<Local<'env, DrmConvertedStatus>>, Local<'env, Throwable>>
[src]

closeConvertSession

Required features: "android-drm-DrmConvertedStatus"

pub const ERROR_NONE: i32[src]

public static final ERROR_NONE

pub const ERROR_UNKNOWN: i32[src]

public static final ERROR_UNKNOWN

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for DrmManagerClient

impl AsRef<AutoCloseable> for DrmManagerClient

impl AsValidJObjectAndEnv for DrmManagerClient

impl Deref for DrmManagerClient

type Target = Object

The resulting type after dereferencing.

impl JniType for DrmManagerClient

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.