[]Struct jni_android_sys::android::widget::Gallery

#[repr(transparent)]
pub struct Gallery(_);
Deprecated

public class Gallery

Required feature: "android-widget-Gallery"

Methods

impl Gallery

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

Gallery

Required features: "android-content-Context"

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

Gallery

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn new_Context_AttributeSet_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>,
    arg2: i32
) -> Result<Local<'env, Gallery>, Local<'env, Throwable>>
[src]

Gallery

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn new_Context_AttributeSet_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>,
    arg2: i32,
    arg3: i32
) -> Result<Local<'env, Gallery>, Local<'env, Throwable>>
[src]

Gallery

Required features: "android-content-Context", "android-util-AttributeSet"

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

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

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

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

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

generateLayoutParams

Required features: "android-util-AttributeSet", "android-view-ViewGroup_LayoutParams"

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

onTouchEvent

Required features: "android-view-MotionEvent"

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

onSingleTapUp

Required features: "android-view-MotionEvent"

pub fn onFling<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>,
    arg1: impl Into<Option<&'env MotionEvent>>,
    arg2: f32,
    arg3: f32
) -> Result<bool, Local<'env, Throwable>>
[src]

onFling

Required features: "android-view-MotionEvent"

pub fn onScroll<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>,
    arg1: impl Into<Option<&'env MotionEvent>>,
    arg2: f32,
    arg3: f32
) -> Result<bool, Local<'env, Throwable>>
[src]

onScroll

Required features: "android-view-MotionEvent"

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

onDown

Required features: "android-view-MotionEvent"

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

onLongPress

Required features: "android-view-MotionEvent"

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

onShowPress

Required features: "android-view-MotionEvent"

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

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

showContextMenuForChild

Required features: "android-view-View"

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

showContextMenuForChild

Required features: "android-view-View"

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

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

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

dispatchKeyEvent

Required features: "android-view-KeyEvent"

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

onKeyDown

Required features: "android-view-KeyEvent"

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

onKeyUp

Required features: "android-view-KeyEvent"

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

Methods from Deref<Target = AbsSpinner>

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

setAdapter

Required features: "android-widget-SpinnerAdapter"

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

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

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

getSelectedView

Required features: "android-view-View"

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

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

getAdapter

Required features: "android-widget-SpinnerAdapter"

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

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

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

onSaveInstanceState

Required features: "android-os-Parcelable"

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

onRestoreInstanceState

Required features: "android-os-Parcelable"

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

autofill

Required features: "android-view-autofill-AutofillValue"

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

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

getAutofillValue

Required features: "android-view-autofill-AutofillValue"

Trait Implementations

impl AsJValue for Gallery

impl AsRef<GestureDetector_OnGestureListener> for Gallery

impl AsValidJObjectAndEnv for Gallery

impl Deref for Gallery

type Target = AbsSpinner

The resulting type after dereferencing.

impl JniType for Gallery

Auto Trait Implementations

impl RefUnwindSafe for Gallery

impl !Send for Gallery

impl !Sync for Gallery

impl Unpin for Gallery

impl UnwindSafe for Gallery

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.