[−]Struct jni_android_sys::android::media::MediaRouter
public class MediaRouter
Required feature: "android-media-MediaRouter"
Methods
impl MediaRouter
pub fn getDefaultRoute<'env>(
&'env self
) -> Result<Option<Local<'env, MediaRouter_RouteInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, MediaRouter_RouteInfo>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteInfo"
pub fn getSelectedRoute<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MediaRouter_RouteInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MediaRouter_RouteInfo>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteInfo"
pub fn addCallback_int_Callback<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MediaRouter_Callback>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MediaRouter_Callback>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRouter_Callback"
pub fn addCallback_int_Callback_int<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MediaRouter_Callback>>,
arg2: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MediaRouter_Callback>>,
arg2: i32
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRouter_Callback"
pub fn removeCallback<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaRouter_Callback>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaRouter_Callback>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRouter_Callback"
pub fn selectRoute<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MediaRouter_RouteInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env MediaRouter_RouteInfo>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteInfo"
pub fn addUserRoute<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaRouter_UserRouteInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaRouter_UserRouteInfo>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRouter_UserRouteInfo"
pub fn removeUserRoute<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaRouter_UserRouteInfo>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaRouter_UserRouteInfo>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-media-MediaRouter_UserRouteInfo"
pub fn clearUserRoutes<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getCategoryCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getCategoryAt<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MediaRouter_RouteCategory>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MediaRouter_RouteCategory>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteCategory"
pub fn getRouteCount<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn getRouteAt<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MediaRouter_RouteInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, MediaRouter_RouteInfo>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteInfo"
pub fn createUserRoute<'env>(
&'env self,
arg0: impl Into<Option<&'env MediaRouter_RouteCategory>>
) -> Result<Option<Local<'env, MediaRouter_UserRouteInfo>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MediaRouter_RouteCategory>>
) -> Result<Option<Local<'env, MediaRouter_UserRouteInfo>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteCategory", "android-media-MediaRouter_UserRouteInfo"
pub fn createRouteCategory_CharSequence_boolean<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: bool
) -> Result<Option<Local<'env, MediaRouter_RouteCategory>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: bool
) -> Result<Option<Local<'env, MediaRouter_RouteCategory>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteCategory", "java-lang-CharSequence"
pub fn createRouteCategory_int_boolean<'env>(
&'env self,
arg0: i32,
arg1: bool
) -> Result<Option<Local<'env, MediaRouter_RouteCategory>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: bool
) -> Result<Option<Local<'env, MediaRouter_RouteCategory>>, Local<'env, Throwable>>
Required features: "android-media-MediaRouter_RouteCategory"
pub const CALLBACK_FLAG_PERFORM_ACTIVE_SCAN: i32
[src]
public static final CALLBACK_FLAG_PERFORM_ACTIVE_SCAN
pub const CALLBACK_FLAG_UNFILTERED_EVENTS: i32
[src]
public static final CALLBACK_FLAG_UNFILTERED_EVENTS
pub const ROUTE_TYPE_LIVE_AUDIO: i32
[src]
public static final ROUTE_TYPE_LIVE_AUDIO
pub const ROUTE_TYPE_LIVE_VIDEO: i32
[src]
public static final ROUTE_TYPE_LIVE_VIDEO
pub const ROUTE_TYPE_USER: i32
[src]
public static final ROUTE_TYPE_USER
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for MediaRouter
impl AsValidJObjectAndEnv for MediaRouter
impl Deref for MediaRouter
impl JniType for MediaRouter
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for MediaRouter
impl !Send for MediaRouter
impl !Sync for MediaRouter
impl Unpin for MediaRouter
impl UnwindSafe for MediaRouter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,