[−]Struct jni_android_sys::android::widget::ShareActionProvider
public class ShareActionProvider
Required feature: "android-widget-ShareActionProvider"
Methods
impl ShareActionProvider
pub fn new<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, ShareActionProvider>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, ShareActionProvider>, Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn setOnShareTargetSelectedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env ShareActionProvider_OnShareTargetSelectedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ShareActionProvider_OnShareTargetSelectedListener>>
) -> Result<(), Local<'env, Throwable>>
setOnShareTargetSelectedListener
Required features: "android-widget-ShareActionProvider_OnShareTargetSelectedListener"
pub fn onCreateActionView<'env>(
&'env self
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
Required features: "android-view-View"
pub fn hasSubMenu<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn onPrepareSubMenu<'env>(
&'env self,
arg0: impl Into<Option<&'env SubMenu>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SubMenu>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-SubMenu"
pub fn setShareHistoryFileName<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn setShareIntent<'env>(
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Intent"
pub const DEFAULT_SHARE_HISTORY_FILE_NAME: &'static str
[src]
public static final DEFAULT_SHARE_HISTORY_FILE_NAME
Methods from Deref<Target = ActionProvider>
pub fn onCreateActionView<'env>(
&'env self
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
Required features: "android-view-View"
pub fn onCreateActionView_MenuItem<'env>(
&'env self,
arg0: impl Into<Option<&'env MenuItem>>
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env MenuItem>>
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
Required features: "android-view-MenuItem", "android-view-View"
pub fn overridesItemVisibility<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isVisible<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn refreshVisibility<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn onPerformDefaultAction<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn hasSubMenu<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn onPrepareSubMenu<'env>(
&'env self,
arg0: impl Into<Option<&'env SubMenu>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SubMenu>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-SubMenu"
pub fn setVisibilityListener<'env>(
&'env self,
arg0: impl Into<Option<&'env ActionProvider_VisibilityListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ActionProvider_VisibilityListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-view-ActionProvider_VisibilityListener"
Trait Implementations
impl AsJValue for ShareActionProvider
impl AsValidJObjectAndEnv for ShareActionProvider
impl Deref for ShareActionProvider
type Target = ActionProvider
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
impl JniType for ShareActionProvider
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for ShareActionProvider
impl !Send for ShareActionProvider
impl !Sync for ShareActionProvider
impl Unpin for ShareActionProvider
impl UnwindSafe for ShareActionProvider
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>,