[]Struct jni_android_sys::android::media::MediaCas

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

public final class MediaCas

Required feature: "android-media-MediaCas"

Methods

impl MediaCas

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<Local<'env, MediaCas>, Local<'env, Throwable>>
[src]

pub fn isSystemIdSupported<'env>(
    __jni_env: &'env Env,
    arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn enumeratePlugins<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, ObjectArray<MediaCas_PluginDescriptor, Throwable>>>, Local<'env, Throwable>>
[src]

enumeratePlugins

Required features: "android-media-MediaCas_PluginDescriptor"

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

setEventListener

Required features: "android-media-MediaCas_EventListener", "android-os-Handler"

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

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

openSession

Required features: "android-media-MediaCas_Session"

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

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

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

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

provision

Required features: "java-lang-String"

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

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

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 MediaCas

impl AsRef<AutoCloseable> for MediaCas

impl AsValidJObjectAndEnv for MediaCas

impl Deref for MediaCas

type Target = Object

The resulting type after dereferencing.

impl JniType for MediaCas

Auto Trait Implementations

impl RefUnwindSafe for MediaCas

impl !Send for MediaCas

impl !Sync for MediaCas

impl Unpin for MediaCas

impl UnwindSafe for MediaCas

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.