[]Struct jni_android_sys::android::app::Notification_Builder

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

public class Notification.Builder

Required feature: "android-app-Notification_Builder"

Methods

impl Notification_Builder

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

Builder

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

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

Deprecated

Builder

Required features: "android-content-Context"

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

setShortcutId

Required features: "android-app-Notification_Builder", "java-lang-String"

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

setBadgeIconType

Required features: "android-app-Notification_Builder"

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

setGroupAlertBehavior

Required features: "android-app-Notification_Builder"

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

setChannelId

Required features: "android-app-Notification_Builder", "java-lang-String"

pub fn setTimeoutAfter<'env>(
    &'env self,
    arg0: i64
) -> Result<Option<Local<'env, Notification_Builder>>, Local<'env, Throwable>>
[src]

setTimeoutAfter

Required features: "android-app-Notification_Builder"

pub fn setWhen<'env>(
    &'env self,
    arg0: i64
) -> Result<Option<Local<'env, Notification_Builder>>, Local<'env, Throwable>>
[src]

setWhen

Required features: "android-app-Notification_Builder"

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

setShowWhen

Required features: "android-app-Notification_Builder"

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

setUsesChronometer

Required features: "android-app-Notification_Builder"

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

setChronometerCountDown

Required features: "android-app-Notification_Builder"

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

setSmallIcon

Required features: "android-app-Notification_Builder"

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

setSmallIcon

Required features: "android-app-Notification_Builder"

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

setSmallIcon

Required features: "android-app-Notification_Builder", "android-graphics-drawable-Icon"

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

setContentTitle

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

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

setContentText

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

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

setSubText

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

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

setSettingsText

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

pub fn setRemoteInputHistory<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<CharSequence, Throwable>>>
) -> Result<Option<Local<'env, Notification_Builder>>, Local<'env, Throwable>>
[src]

setRemoteInputHistory

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

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

setNumber

Required features: "android-app-Notification_Builder"

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

Deprecated

setContentInfo

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

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

setProgress

Required features: "android-app-Notification_Builder"

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

Deprecated

setContent

Required features: "android-app-Notification_Builder", "android-widget-RemoteViews"

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

setCustomContentView

Required features: "android-app-Notification_Builder", "android-widget-RemoteViews"

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

setCustomBigContentView

Required features: "android-app-Notification_Builder", "android-widget-RemoteViews"

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

setCustomHeadsUpContentView

Required features: "android-app-Notification_Builder", "android-widget-RemoteViews"

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

setContentIntent

Required features: "android-app-Notification_Builder", "android-app-PendingIntent"

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

setDeleteIntent

Required features: "android-app-Notification_Builder", "android-app-PendingIntent"

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

setFullScreenIntent

Required features: "android-app-Notification_Builder", "android-app-PendingIntent"

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

setTicker

Required features: "android-app-Notification_Builder", "java-lang-CharSequence"

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

Deprecated

setTicker

Required features: "android-app-Notification_Builder", "android-widget-RemoteViews", "java-lang-CharSequence"

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

setLargeIcon

Required features: "android-app-Notification_Builder", "android-graphics-Bitmap"

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

setLargeIcon

Required features: "android-app-Notification_Builder", "android-graphics-drawable-Icon"

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

Deprecated

setSound

Required features: "android-app-Notification_Builder", "android-net-Uri"

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

Deprecated

setSound

Required features: "android-app-Notification_Builder", "android-net-Uri"

pub fn setSound_Uri_AudioAttributes<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Uri>>,
    arg1: impl Into<Option<&'env AudioAttributes>>
) -> Result<Option<Local<'env, Notification_Builder>>, Local<'env, Throwable>>
[src]

Deprecated

setSound

Required features: "android-app-Notification_Builder", "android-media-AudioAttributes", "android-net-Uri"

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

Deprecated

setVibrate

Required features: "android-app-Notification_Builder"

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

Deprecated

setLights

Required features: "android-app-Notification_Builder"

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

setOngoing

Required features: "android-app-Notification_Builder"

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

setColorized

Required features: "android-app-Notification_Builder"

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

setOnlyAlertOnce

Required features: "android-app-Notification_Builder"

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

setAutoCancel

Required features: "android-app-Notification_Builder"

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

setLocalOnly

Required features: "android-app-Notification_Builder"

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

Deprecated

setDefaults

Required features: "android-app-Notification_Builder"

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

Deprecated

setPriority

Required features: "android-app-Notification_Builder"

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

setCategory

Required features: "android-app-Notification_Builder", "java-lang-String"

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

Deprecated

addPerson

Required features: "android-app-Notification_Builder", "java-lang-String"

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

addPerson

Required features: "android-app-Notification_Builder", "android-app-Person"

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

setGroup

Required features: "android-app-Notification_Builder", "java-lang-String"

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

setGroupSummary

Required features: "android-app-Notification_Builder"

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

setSortKey

Required features: "android-app-Notification_Builder", "java-lang-String"

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

addExtras

Required features: "android-app-Notification_Builder", "android-os-Bundle"

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

setExtras

Required features: "android-app-Notification_Builder", "android-os-Bundle"

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

getExtras

Required features: "android-os-Bundle"

pub fn addAction_int_CharSequence_PendingIntent<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env CharSequence>>,
    arg2: impl Into<Option<&'env PendingIntent>>
) -> Result<Option<Local<'env, Notification_Builder>>, Local<'env, Throwable>>
[src]

Deprecated

addAction

Required features: "android-app-Notification_Builder", "android-app-PendingIntent", "java-lang-CharSequence"

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

addAction

Required features: "android-app-Notification_Action", "android-app-Notification_Builder"

pub fn setActions<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<Notification_Action, Throwable>>>
) -> Result<Option<Local<'env, Notification_Builder>>, Local<'env, Throwable>>
[src]

setActions

Required features: "android-app-Notification_Action", "android-app-Notification_Builder"

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

setStyle

Required features: "android-app-Notification_Builder", "android-app-Notification_Style"

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

getStyle

Required features: "android-app-Notification_Style"

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

setVisibility

Required features: "android-app-Notification_Builder"

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

setPublicVersion

Required features: "android-app-Notification", "android-app-Notification_Builder"

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

extend

Required features: "android-app-Notification_Builder", "android-app-Notification_Extender"

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

setColor

Required features: "android-app-Notification_Builder"

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

createContentView

Required features: "android-widget-RemoteViews"

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

createBigContentView

Required features: "android-widget-RemoteViews"

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

createHeadsUpContentView

Required features: "android-widget-RemoteViews"

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

recoverBuilder

Required features: "android-app-Notification", "android-app-Notification_Builder", "android-content-Context"

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

Deprecated

getNotification

Required features: "android-app-Notification"

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

build

Required features: "android-app-Notification"

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 Notification_Builder

impl AsValidJObjectAndEnv for Notification_Builder

impl Deref for Notification_Builder

type Target = Object

The resulting type after dereferencing.

impl JniType for Notification_Builder

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.