[]Struct jni_android_sys::android::service::media::MediaBrowserService

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

public class MediaBrowserService

Required feature: "android-service-media-MediaBrowserService"

Methods

impl MediaBrowserService

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

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

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

onBind

Required features: "android-content-Intent", "android-os-IBinder"

pub fn dump<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FileDescriptor>>,
    arg1: impl Into<Option<&'env PrintWriter>>,
    arg2: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]

dump

Required features: "java-io-FileDescriptor", "java-io-PrintWriter", "java-lang-String"

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

onGetRoot

Required features: "android-os-Bundle", "android-service-media-MediaBrowserService_BrowserRoot", "java-lang-String"

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

onLoadChildren

Required features: "android-service-media-MediaBrowserService_Result", "java-lang-String"

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

onLoadChildren

Required features: "android-os-Bundle", "android-service-media-MediaBrowserService_Result", "java-lang-String"

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

onLoadItem

Required features: "android-service-media-MediaBrowserService_Result", "java-lang-String"

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

setSessionToken

Required features: "android-media-session-MediaSession_Token"

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

getSessionToken

Required features: "android-media-session-MediaSession_Token"

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

getBrowserRootHints

Required features: "android-os-Bundle"

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

getCurrentBrowserInfo

Required features: "android-media-session-MediaSessionManager_RemoteUserInfo"

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

notifyChildrenChanged

Required features: "java-lang-String"

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

notifyChildrenChanged

Required features: "android-os-Bundle", "java-lang-String"

pub const SERVICE_INTERFACE: &'static str[src]

public static final SERVICE_INTERFACE

Methods from Deref<Target = Service>

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

getApplication

Required features: "android-app-Application"

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

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

Deprecated

onStart

Required features: "android-content-Intent"

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

onStartCommand

Required features: "android-content-Intent"

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

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

onConfigurationChanged

Required features: "android-content-res-Configuration"

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

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

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

onBind

Required features: "android-content-Intent", "android-os-IBinder"

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

onUnbind

Required features: "android-content-Intent"

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

onRebind

Required features: "android-content-Intent"

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

onTaskRemoved

Required features: "android-content-Intent"

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

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

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

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

startForeground

Required features: "android-app-Notification"

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

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

pub const START_CONTINUATION_MASK: i32[src]

pub const START_FLAG_REDELIVERY: i32[src]

pub const START_FLAG_RETRY: i32[src]

pub const START_NOT_STICKY: i32[src]

pub const START_REDELIVER_INTENT: i32[src]

pub const START_STICKY: i32[src]

pub const START_STICKY_COMPATIBILITY: i32[src]

pub const STOP_FOREGROUND_DETACH: i32[src]

pub const STOP_FOREGROUND_REMOVE: i32[src]

Trait Implementations

impl AsJValue for MediaBrowserService

impl AsValidJObjectAndEnv for MediaBrowserService

impl Deref for MediaBrowserService

type Target = Service

The resulting type after dereferencing.

impl JniType for MediaBrowserService

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.