CLKComplicationDataSource

Trait CLKComplicationDataSource 

Source
pub unsafe trait CLKComplicationDataSource: NSObjectProtocol + MainThreadOnly {
Show 17 methods // Provided methods unsafe fn getTimelineEndDateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut NSDate)>, ) where Self: Sized + Message { ... } unsafe fn getPrivacyBehaviorForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationPrivacyBehavior)>, ) where Self: Sized + Message { ... } unsafe fn getTimelineAnimationBehaviorForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationTimelineAnimationBehavior)>, ) where Self: Sized + Message { ... } unsafe fn getAlwaysOnTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, ) where Self: Sized + Message { ... } unsafe fn getCurrentTimelineEntryForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTimelineEntry)>, ) where Self: Sized + Message { ... } unsafe fn getTimelineEntriesForComplication_afterDate_limit_withHandler( &self, complication: &CLKComplication, date: &NSDate, limit: NSUInteger, handler: &DynBlock<dyn Fn(*mut NSArray<CLKComplicationTimelineEntry>)>, ) where Self: Sized + Message { ... } unsafe fn getLocalizableSampleTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, ) where Self: Sized + Message { ... } unsafe fn getComplicationDescriptorsWithHandler( &self, handler: &DynBlock<dyn Fn(NonNull<NSArray<CLKComplicationDescriptor>>)>, ) where Self: Sized + Message { ... } unsafe fn handleSharedComplicationDescriptors( &self, complication_descriptors: &NSArray<CLKComplicationDescriptor>, ) where Self: Sized + Message { ... } unsafe fn widgetMigrator( &self, ) -> Retained<ProtocolObject<dyn CLKComplicationWidgetMigrator>> where Self: Sized + Message { ... } unsafe fn getPlaceholderTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, ) where Self: Sized + Message { ... } unsafe fn getSupportedTimeTravelDirectionsForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationTimeTravelDirections)>, ) where Self: Sized + Message { ... } unsafe fn getTimelineStartDateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut NSDate)>, ) where Self: Sized + Message { ... } unsafe fn getTimelineEntriesForComplication_beforeDate_limit_withHandler( &self, complication: &CLKComplication, date: &NSDate, limit: NSUInteger, handler: &DynBlock<dyn Fn(*mut NSArray<CLKComplicationTimelineEntry>)>, ) where Self: Sized + Message { ... } unsafe fn getNextRequestedUpdateDateWithHandler( &self, handler: &DynBlock<dyn Fn(*mut NSDate)>, ) where Self: Sized + Message { ... } unsafe fn requestedUpdateDidBegin(&self) where Self: Sized + Message { ... } unsafe fn requestedUpdateBudgetExhausted(&self) where Self: Sized + Message { ... }
}
Available on crate feature CLKComplicationDataSource only.
Expand description

Provided Methods§

Source

unsafe fn getTimelineEndDateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut NSDate)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and block2 only.
Source

unsafe fn getPrivacyBehaviorForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationPrivacyBehavior)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and CLKDefines and block2 only.
Source

unsafe fn getTimelineAnimationBehaviorForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationTimelineAnimationBehavior)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and CLKDefines and block2 only.
Source

unsafe fn getAlwaysOnTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and CLKComplicationTemplate and block2 only.
Source

unsafe fn getCurrentTimelineEntryForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTimelineEntry)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and CLKComplicationTimelineEntry and block2 only.
Source

unsafe fn getTimelineEntriesForComplication_afterDate_limit_withHandler( &self, complication: &CLKComplication, date: &NSDate, limit: NSUInteger, handler: &DynBlock<dyn Fn(*mut NSArray<CLKComplicationTimelineEntry>)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and CLKComplicationTimelineEntry and block2 only.
Source

unsafe fn getLocalizableSampleTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplication and CLKComplicationTemplate and block2 only.
Source

unsafe fn getComplicationDescriptorsWithHandler( &self, handler: &DynBlock<dyn Fn(NonNull<NSArray<CLKComplicationDescriptor>>)>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features CLKComplicationDescriptor and block2 only.
Source

unsafe fn handleSharedComplicationDescriptors( &self, complication_descriptors: &NSArray<CLKComplicationDescriptor>, )
where Self: Sized + Message,

👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate feature CLKComplicationDescriptor only.
Source

unsafe fn widgetMigrator( &self, ) -> Retained<ProtocolObject<dyn CLKComplicationWidgetMigrator>>
where Self: Sized + Message,

Available on crate feature CLKComplicationWidgetMigrator only.
Source

unsafe fn getPlaceholderTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, )
where Self: Sized + Message,

👎Deprecated
Available on crate features CLKComplication and CLKComplicationTemplate and block2 only.
Source

unsafe fn getSupportedTimeTravelDirectionsForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationTimeTravelDirections)>, )
where Self: Sized + Message,

👎Deprecated: Time Travel is no longer supported. Use CLKComplicationDataSource’s getTimelineEndDateForComplication:withHandler: to specify forward timeline support.
Available on crate features CLKComplication and CLKDefines and block2 only.
Source

unsafe fn getTimelineStartDateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut NSDate)>, )
where Self: Sized + Message,

👎Deprecated: Time Travel and backwards extension of timelines are no longer supported.
Available on crate features CLKComplication and block2 only.
Source

unsafe fn getTimelineEntriesForComplication_beforeDate_limit_withHandler( &self, complication: &CLKComplication, date: &NSDate, limit: NSUInteger, handler: &DynBlock<dyn Fn(*mut NSArray<CLKComplicationTimelineEntry>)>, )
where Self: Sized + Message,

👎Deprecated: Time Travel and backwards extension of timelines are no longer supported.
Available on crate features CLKComplication and CLKComplicationTimelineEntry and block2 only.
Source

unsafe fn getNextRequestedUpdateDateWithHandler( &self, handler: &DynBlock<dyn Fn(*mut NSDate)>, )
where Self: Sized + Message,

👎Deprecated: Use WKRefreshBackgroundTask instead
Available on crate feature block2 only.
Source

unsafe fn requestedUpdateDidBegin(&self)
where Self: Sized + Message,

👎Deprecated: Use WKRefreshBackgroundTask instead
Source

unsafe fn requestedUpdateBudgetExhausted(&self)
where Self: Sized + Message,

👎Deprecated: Use WKRefreshBackgroundTask instead

Trait Implementations§

Source§

impl ProtocolType for dyn CLKComplicationDataSource

Source§

const NAME: &'static str = "CLKComplicationDataSource"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn CLKComplicationDataSource

Implementations on Foreign Types§

Source§

impl<T> CLKComplicationDataSource for ProtocolObject<T>

Implementors§