[]Struct jni_android_sys::android::appwidget::AppWidgetManager

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

public class AppWidgetManager

Required feature: "android-appwidget-AppWidgetManager"

Methods

impl AppWidgetManager

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

getInstance

Required features: "android-appwidget-AppWidgetManager", "android-content-Context"

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

updateAppWidget

Required features: "android-widget-RemoteViews"

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

updateAppWidgetOptions

Required features: "android-os-Bundle"

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

getAppWidgetOptions

Required features: "android-os-Bundle"

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

updateAppWidget

Required features: "android-widget-RemoteViews"

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

partiallyUpdateAppWidget

Required features: "android-widget-RemoteViews"

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

partiallyUpdateAppWidget

Required features: "android-widget-RemoteViews"

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

updateAppWidget

Required features: "android-content-ComponentName", "android-widget-RemoteViews"

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

updateAppWidgetProviderInfo

Required features: "android-content-ComponentName", "java-lang-String"

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

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

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

getInstalledProvidersForProfile

Required features: "android-os-UserHandle", "java-util-List"

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

getInstalledProvidersForPackage

Required features: "android-os-UserHandle", "java-lang-String", "java-util-List"

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

getInstalledProviders

Required features: "java-util-List"

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

getAppWidgetInfo

Required features: "android-appwidget-AppWidgetProviderInfo"

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

bindAppWidgetIdIfAllowed

Required features: "android-content-ComponentName"

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

bindAppWidgetIdIfAllowed

Required features: "android-content-ComponentName", "android-os-Bundle"

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

bindAppWidgetIdIfAllowed

Required features: "android-content-ComponentName", "android-os-Bundle", "android-os-UserHandle"

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

getAppWidgetIds

Required features: "android-content-ComponentName"

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

pub fn requestPinAppWidget<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ComponentName>>,
    arg1: impl Into<Option<&'env Bundle>>,
    arg2: impl Into<Option<&'env PendingIntent>>
) -> Result<bool, Local<'env, Throwable>>
[src]

requestPinAppWidget

Required features: "android-app-PendingIntent", "android-content-ComponentName", "android-os-Bundle"

pub const ACTION_APPWIDGET_BIND: &'static str[src]

public static final ACTION_APPWIDGET_BIND

pub const ACTION_APPWIDGET_CONFIGURE: &'static str[src]

public static final ACTION_APPWIDGET_CONFIGURE

pub const ACTION_APPWIDGET_DELETED: &'static str[src]

public static final ACTION_APPWIDGET_DELETED

pub const ACTION_APPWIDGET_DISABLED: &'static str[src]

public static final ACTION_APPWIDGET_DISABLED

pub const ACTION_APPWIDGET_ENABLED: &'static str[src]

public static final ACTION_APPWIDGET_ENABLED

pub const ACTION_APPWIDGET_HOST_RESTORED: &'static str[src]

public static final ACTION_APPWIDGET_HOST_RESTORED

pub const ACTION_APPWIDGET_OPTIONS_CHANGED: &'static str[src]

pub const ACTION_APPWIDGET_PICK: &'static str[src]

public static final ACTION_APPWIDGET_PICK

pub const ACTION_APPWIDGET_RESTORED: &'static str[src]

public static final ACTION_APPWIDGET_RESTORED

pub const ACTION_APPWIDGET_UPDATE: &'static str[src]

public static final ACTION_APPWIDGET_UPDATE

pub const EXTRA_APPWIDGET_ID: &'static str[src]

public static final EXTRA_APPWIDGET_ID

pub const EXTRA_APPWIDGET_IDS: &'static str[src]

public static final EXTRA_APPWIDGET_IDS

pub const EXTRA_APPWIDGET_OLD_IDS: &'static str[src]

public static final EXTRA_APPWIDGET_OLD_IDS

pub const EXTRA_APPWIDGET_OPTIONS: &'static str[src]

public static final EXTRA_APPWIDGET_OPTIONS

pub const EXTRA_APPWIDGET_PREVIEW: &'static str[src]

public static final EXTRA_APPWIDGET_PREVIEW

pub const EXTRA_APPWIDGET_PROVIDER: &'static str[src]

public static final EXTRA_APPWIDGET_PROVIDER

pub const EXTRA_APPWIDGET_PROVIDER_PROFILE: &'static str[src]

pub const EXTRA_CUSTOM_EXTRAS: &'static str[src]

public static final EXTRA_CUSTOM_EXTRAS

pub const EXTRA_CUSTOM_INFO: &'static str[src]

public static final EXTRA_CUSTOM_INFO

pub const EXTRA_HOST_ID: &'static str[src]

public static final EXTRA_HOST_ID

pub const INVALID_APPWIDGET_ID: i32[src]

public static final INVALID_APPWIDGET_ID

pub const META_DATA_APPWIDGET_PROVIDER: &'static str[src]

public static final META_DATA_APPWIDGET_PROVIDER

pub const OPTION_APPWIDGET_HOST_CATEGORY: &'static str[src]

public static final OPTION_APPWIDGET_HOST_CATEGORY

pub const OPTION_APPWIDGET_MAX_HEIGHT: &'static str[src]

public static final OPTION_APPWIDGET_MAX_HEIGHT

pub const OPTION_APPWIDGET_MAX_WIDTH: &'static str[src]

public static final OPTION_APPWIDGET_MAX_WIDTH

pub const OPTION_APPWIDGET_MIN_HEIGHT: &'static str[src]

public static final OPTION_APPWIDGET_MIN_HEIGHT

pub const OPTION_APPWIDGET_MIN_WIDTH: &'static str[src]

public static final OPTION_APPWIDGET_MIN_WIDTH

Methods from Deref<Target = Object>

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

getClass

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]

equals

Required features: "java-lang-Object"

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

toString

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]

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

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

Trait Implementations

impl AsJValue for AppWidgetManager

impl AsValidJObjectAndEnv for AppWidgetManager

impl Deref for AppWidgetManager

type Target = Object

The resulting type after dereferencing.

impl JniType for AppWidgetManager

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.