[]Struct jni_android_sys::android::appwidget::AppWidgetHostView

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

public class AppWidgetHostView

Required feature: "android-appwidget-AppWidgetHostView"

Methods

impl AppWidgetHostView

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

AppWidgetHostView

Required features: "android-content-Context"

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

AppWidgetHostView

Required features: "android-content-Context"

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

setAppWidget

Required features: "android-appwidget-AppWidgetProviderInfo"

pub fn getDefaultPaddingForWidget<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env ComponentName>>,
    arg2: impl Into<Option<&'env Rect>>
) -> Result<Option<Local<'env, Rect>>, Local<'env, Throwable>>
[src]

getDefaultPaddingForWidget

Required features: "android-content-ComponentName", "android-content-Context", "android-graphics-Rect"

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

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

getAppWidgetInfo

Required features: "android-appwidget-AppWidgetProviderInfo"

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

updateAppWidgetSize

Required features: "android-os-Bundle"

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

updateAppWidgetOptions

Required features: "android-os-Bundle"

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

generateLayoutParams

Required features: "android-util-AttributeSet", "android-widget-FrameLayout_LayoutParams"

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

setExecutor

Required features: "java-util-concurrent-Executor"

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

updateAppWidget

Required features: "android-widget-RemoteViews"

Methods from Deref<Target = FrameLayout>

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

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

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

Deprecated

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

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

generateLayoutParams

Required features: "android-util-AttributeSet", "android-widget-FrameLayout_LayoutParams"

pub fn shouldDelayChildPressedState<'env>(
    &'env self
) -> Result<bool, 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"

Trait Implementations

impl AsJValue for AppWidgetHostView

impl AsValidJObjectAndEnv for AppWidgetHostView

impl Deref for AppWidgetHostView

type Target = FrameLayout

The resulting type after dereferencing.

impl JniType for AppWidgetHostView

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.