[−]Struct jni_android_sys::android::app::WallpaperManager
public class WallpaperManager
Required feature: "android-app-WallpaperManager"
Methods
impl WallpaperManager
pub fn getInstance<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, WallpaperManager>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, WallpaperManager>>, Local<'env, Throwable>>
Required features: "android-app-WallpaperManager", "android-content-Context"
pub fn getDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getBuiltInDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getBuiltInDrawable_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getBuiltInDrawable_int_int_boolean_float_float<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: bool,
arg3: f32,
arg4: f32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: bool,
arg3: f32,
arg4: f32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getBuiltInDrawable_int_int_boolean_float_float_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: bool,
arg3: f32,
arg4: f32,
arg5: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: bool,
arg3: f32,
arg4: f32,
arg5: i32
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn peekDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getFastDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn peekFastDrawable<'env>(
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Drawable>>, Local<'env, Throwable>>
Required features: "android-graphics-drawable-Drawable"
pub fn getWallpaperFile<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
Required features: "android-os-ParcelFileDescriptor"
pub fn addOnColorsChangedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env WallpaperManager_OnColorsChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env WallpaperManager_OnColorsChangedListener>>,
arg1: impl Into<Option<&'env Handler>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-WallpaperManager_OnColorsChangedListener", "android-os-Handler"
pub fn removeOnColorsChangedListener<'env>(
&'env self,
arg0: impl Into<Option<&'env WallpaperManager_OnColorsChangedListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env WallpaperManager_OnColorsChangedListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-app-WallpaperManager_OnColorsChangedListener"
pub fn getWallpaperColors<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, WallpaperColors>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, WallpaperColors>>, Local<'env, Throwable>>
Required features: "android-app-WallpaperColors"
pub fn forgetLoadedWallpaper<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn getWallpaperInfo<'env>(
&'env self
) -> Result<Option<Local<'env, WallpaperInfo>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, WallpaperInfo>>, Local<'env, Throwable>>
Required features: "android-app-WallpaperInfo"
pub fn getWallpaperId<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn getCropAndSetWallpaperIntent<'env>(
&'env self,
arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, Intent>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Uri>>
) -> Result<Option<Local<'env, Intent>>, Local<'env, Throwable>>
Required features: "android-content-Intent", "android-net-Uri"
pub fn setResource_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setResource_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<i32, Local<'env, Throwable>>
pub fn setBitmap_Bitmap<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Bitmap"
pub fn setBitmap_Bitmap_Rect_boolean<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Rect"
pub fn setBitmap_Bitmap_Rect_boolean_int<'env>(
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Bitmap>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Bitmap", "android-graphics-Rect"
pub fn setStream_InputStream<'env>(
&'env self,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-InputStream"
pub fn setStream_InputStream_Rect_boolean<'env>(
&'env self,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Rect", "java-io-InputStream"
pub fn setStream_InputStream_Rect_boolean_int<'env>(
&'env self,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env InputStream>>,
arg1: impl Into<Option<&'env Rect>>,
arg2: bool,
arg3: i32
) -> Result<i32, Local<'env, Throwable>>
Required features: "android-graphics-Rect", "java-io-InputStream"
pub fn hasResourceWallpaper<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
pub fn getDesiredMinimumWidth<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn getDesiredMinimumHeight<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
pub fn suggestDesiredDimensions<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setDisplayPadding<'env>(
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Rect>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-graphics-Rect"
pub fn clearWallpaper<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn setWallpaperOffsets<'env>(
&'env self,
arg0: impl Into<Option<&'env IBinder>>,
arg1: f32,
arg2: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IBinder>>,
arg1: f32,
arg2: f32
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-IBinder"
pub fn setWallpaperOffsetSteps<'env>(
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: f32,
arg1: f32
) -> Result<(), Local<'env, Throwable>>
pub fn sendWallpaperCommand<'env>(
&'env self,
arg0: impl Into<Option<&'env IBinder>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IBinder>>,
arg1: impl Into<Option<&'env String>>,
arg2: i32,
arg3: i32,
arg4: i32,
arg5: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-Bundle", "android-os-IBinder", "java-lang-String"
pub fn isWallpaperSupported<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isSetWallpaperAllowed<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn clearWallpaperOffsets<'env>(
&'env self,
arg0: impl Into<Option<&'env IBinder>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env IBinder>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-os-IBinder"
pub fn clear<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn clear_int<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub const ACTION_CHANGE_LIVE_WALLPAPER: &'static str
[src]
public static final ACTION_CHANGE_LIVE_WALLPAPER
pub const ACTION_CROP_AND_SET_WALLPAPER: &'static str
[src]
public static final ACTION_CROP_AND_SET_WALLPAPER
pub const ACTION_LIVE_WALLPAPER_CHOOSER: &'static str
[src]
public static final ACTION_LIVE_WALLPAPER_CHOOSER
pub const COMMAND_DROP: &'static str
[src]
public static final COMMAND_DROP
pub const COMMAND_SECONDARY_TAP: &'static str
[src]
public static final COMMAND_SECONDARY_TAP
pub const COMMAND_TAP: &'static str
[src]
public static final COMMAND_TAP
pub const EXTRA_LIVE_WALLPAPER_COMPONENT: &'static str
[src]
public static final EXTRA_LIVE_WALLPAPER_COMPONENT
pub const FLAG_LOCK: i32
[src]
public static final FLAG_LOCK
pub const FLAG_SYSTEM: i32
[src]
public static final FLAG_SYSTEM
pub const WALLPAPER_PREVIEW_META_DATA: &'static str
[src]
public static final WALLPAPER_PREVIEW_META_DATA
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 WallpaperManager
impl AsValidJObjectAndEnv for WallpaperManager
impl Deref for WallpaperManager
impl JniType for WallpaperManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for WallpaperManager
impl !Send for WallpaperManager
impl !Sync for WallpaperManager
impl Unpin for WallpaperManager
impl UnwindSafe for WallpaperManager
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>,