Struct objc2_ui_kit::UILocalNotification
source · #[repr(C)]pub struct UILocalNotification { /* private fields */ }
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
Available on crate feature
UILocalNotification
only.Implementations§
source§impl UILocalNotification
impl UILocalNotification
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn initWithCoder( this: Allocated<Self>, coder: &NSCoder ) -> Option<Retained<Self>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn fireDate(&self) -> Option<Retained<NSDate>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setFireDate(&self, fire_date: Option<&NSDate>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn timeZone(&self) -> Option<Retained<NSTimeZone>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setTimeZone(&self, time_zone: Option<&NSTimeZone>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn repeatInterval(&self) -> NSCalendarUnit
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setRepeatInterval(&self, repeat_interval: NSCalendarUnit)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn repeatCalendar(&self) -> Option<Retained<NSCalendar>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setRepeatCalendar(&self, repeat_calendar: Option<&NSCalendar>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn region(&self) -> Option<Retained<CLRegion>>
Available on crate feature
objc2-core-location
only.pub unsafe fn setRegion(&self, region: Option<&CLRegion>)
Available on crate feature
objc2-core-location
only.pub unsafe fn regionTriggersOnce(&self) -> bool
pub unsafe fn setRegionTriggersOnce(&self, region_triggers_once: bool)
pub unsafe fn alertBody(&self) -> Option<Retained<NSString>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setAlertBody(&self, alert_body: Option<&NSString>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn hasAction(&self) -> bool
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setHasAction(&self, has_action: bool)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn alertAction(&self) -> Option<Retained<NSString>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setAlertAction(&self, alert_action: Option<&NSString>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn alertLaunchImage(&self) -> Option<Retained<NSString>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setAlertLaunchImage(&self, alert_launch_image: Option<&NSString>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn alertTitle(&self) -> Option<Retained<NSString>>
pub unsafe fn setAlertTitle(&self, alert_title: Option<&NSString>)
pub unsafe fn soundName(&self) -> Option<Retained<NSString>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setSoundName(&self, sound_name: Option<&NSString>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn applicationIconBadgeNumber(&self) -> NSInteger
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setApplicationIconBadgeNumber( &self, application_icon_badge_number: NSInteger )
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn userInfo(&self) -> Option<Retained<NSDictionary>>
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn setUserInfo(&self, user_info: Option<&NSDictionary>)
👎Deprecated: Use UserNotifications Framework’s UNNotificationRequest
pub unsafe fn category(&self) -> Option<Retained<NSString>>
pub unsafe fn setCategory(&self, category: Option<&NSString>)
source§impl UILocalNotification
impl UILocalNotification
Methods declared on superclass NSObject
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>
Methods from Deref<Target = NSObject>§
sourcepub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
pub fn doesNotRecognizeSelector(&self, sel: Sel) -> !
Handle messages the object doesn’t recognize.
See Apple’s documentation for details.
Methods from Deref<Target = AnyObject>§
sourcepub fn class(&self) -> &'static AnyClass
Available on crate feature UIIndirectScribbleInteraction
only.
pub fn class(&self) -> &'static AnyClass
UIIndirectScribbleInteraction
only.Dynamically find the class of this object.
§Example
Check that an instance of NSObject
has the precise class NSObject
.
use objc2::ClassType;
use objc2::runtime::NSObject;
let obj = NSObject::new();
assert_eq!(obj.class(), NSObject::class());
sourcepub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load
instead.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_ivar<T>(&self, name: &str) -> &Twhere
T: Encode,
Ivar::load
instead.UIIndirectScribbleInteraction
only.Use Ivar::load
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
sourcepub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
👎Deprecated: this is difficult to use correctly, use Ivar::load_mut
instead.Available on crate feature UIIndirectScribbleInteraction
only.
pub unsafe fn get_mut_ivar<T>(&mut self, name: &str) -> &mut Twhere
T: Encode,
Ivar::load_mut
instead.UIIndirectScribbleInteraction
only.Use Ivar::load_mut
instead.
§Safety
The object must have an instance variable with the given name, and it
must be of type T
.
See Ivar::load_ptr
for details surrounding this.
Trait Implementations§
source§impl AsMut<AnyObject> for UILocalNotification
impl AsMut<AnyObject> for UILocalNotification
source§impl AsMut<NSObject> for UILocalNotification
impl AsMut<NSObject> for UILocalNotification
source§impl AsRef<AnyObject> for UILocalNotification
impl AsRef<AnyObject> for UILocalNotification
source§impl AsRef<NSObject> for UILocalNotification
impl AsRef<NSObject> for UILocalNotification
source§impl Borrow<AnyObject> for UILocalNotification
impl Borrow<AnyObject> for UILocalNotification
source§impl Borrow<NSObject> for UILocalNotification
impl Borrow<NSObject> for UILocalNotification
source§impl BorrowMut<AnyObject> for UILocalNotification
impl BorrowMut<AnyObject> for UILocalNotification
source§fn borrow_mut(&mut self) -> &mut AnyObject
fn borrow_mut(&mut self) -> &mut AnyObject
Mutably borrows from an owned value. Read more
source§impl BorrowMut<NSObject> for UILocalNotification
impl BorrowMut<NSObject> for UILocalNotification
source§fn borrow_mut(&mut self) -> &mut NSObject
fn borrow_mut(&mut self) -> &mut NSObject
Mutably borrows from an owned value. Read more
source§impl ClassType for UILocalNotification
impl ClassType for UILocalNotification
§type Mutability = MainThreadOnly
type Mutability = MainThreadOnly
Whether the type is mutable or immutable. Read more
source§const NAME: &'static str = "UILocalNotification"
const NAME: &'static str = "UILocalNotification"
The name of the Objective-C class that this type represents. Read more
source§fn class() -> &'static AnyClass
fn class() -> &'static AnyClass
Get a reference to the Objective-C class that this type represents. Read more
source§fn as_super_mut(&mut self) -> &mut Self::Super
fn as_super_mut(&mut self) -> &mut Self::Super
Get a mutable reference to the superclass.
source§impl Debug for UILocalNotification
impl Debug for UILocalNotification
source§impl Deref for UILocalNotification
impl Deref for UILocalNotification
source§impl DerefMut for UILocalNotification
impl DerefMut for UILocalNotification
source§impl Hash for UILocalNotification
impl Hash for UILocalNotification
source§impl NSCoding for UILocalNotification
impl NSCoding for UILocalNotification
source§impl NSCopying for UILocalNotification
impl NSCopying for UILocalNotification
source§impl NSObjectProtocol for UILocalNotification
impl NSObjectProtocol for UILocalNotification
source§fn isEqual(&self, other: &AnyObject) -> bool
fn isEqual(&self, other: &AnyObject) -> bool
Check whether the object is equal to an arbitrary other object. Read more
source§fn hash(&self) -> usize
fn hash(&self) -> usize
An integer that can be used as a table address in a hash table
structure. Read more
source§fn isKindOfClass(&self, cls: &AnyClass) -> bool
fn isKindOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of the class, or one of its
subclasses. Read more
source§fn is_kind_of<T>(&self) -> bool
fn is_kind_of<T>(&self) -> bool
Check if the object is an instance of the class type, or one of its
subclasses. Read more
source§fn isMemberOfClass(&self, cls: &AnyClass) -> bool
fn isMemberOfClass(&self, cls: &AnyClass) -> bool
Check if the object is an instance of a specific class, without
checking subclasses. Read more
source§fn respondsToSelector(&self, aSelector: Sel) -> bool
fn respondsToSelector(&self, aSelector: Sel) -> bool
Check whether the object implements or inherits a method with the
given selector. Read more
source§fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
fn conformsToProtocol(&self, aProtocol: &AnyProtocol) -> bool
Check whether the object conforms to a given protocol. Read more
source§fn debugDescription(&self) -> Retained<NSObject>
fn debugDescription(&self) -> Retained<NSObject>
A textual representation of the object to use when debugging. Read more
source§impl PartialEq for UILocalNotification
impl PartialEq for UILocalNotification
source§fn eq(&self, other: &UILocalNotification) -> bool
fn eq(&self, other: &UILocalNotification) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RefEncode for UILocalNotification
impl RefEncode for UILocalNotification
source§const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
const ENCODING_REF: Encoding = <NSObject as ::objc2::RefEncode>::ENCODING_REF
The Objective-C type-encoding for a reference of this type. Read more
impl Eq for UILocalNotification
impl Message for UILocalNotification
impl StructuralPartialEq for UILocalNotification
Auto Trait Implementations§
impl !Freeze for UILocalNotification
impl !RefUnwindSafe for UILocalNotification
impl !Send for UILocalNotification
impl !Sync for UILocalNotification
impl !Unpin for UILocalNotification
impl !UnwindSafe for UILocalNotification
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CounterpartOrSelf for T
impl<T> CounterpartOrSelf for T
§type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
type Immutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Immutable
The immutable counterpart of the type, or
Self
if the type has no
immutable counterpart. Read more§type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
type Mutable = <<T as ClassType>::Mutability as MutabilityCounterpartOrSelf<T>>::Mutable
The mutable counterpart of the type, or
Self
if the type has no
mutable counterpart. Read more