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§
unsafe fn getTimelineEndDateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut NSDate)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and block2 only.unsafe fn getPrivacyBehaviorForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationPrivacyBehavior)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and CLKDefines and block2 only.unsafe fn getTimelineAnimationBehaviorForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationTimelineAnimationBehavior)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and CLKDefines and block2 only.unsafe fn getAlwaysOnTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and CLKComplicationTemplate and block2 only.unsafe fn getCurrentTimelineEntryForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTimelineEntry)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and CLKComplicationTimelineEntry and block2 only.unsafe fn getTimelineEntriesForComplication_afterDate_limit_withHandler( &self, complication: &CLKComplication, date: &NSDate, limit: NSUInteger, handler: &DynBlock<dyn Fn(*mut NSArray<CLKComplicationTimelineEntry>)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and CLKComplicationTimelineEntry and block2 only.unsafe fn getLocalizableSampleTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplication and CLKComplicationTemplate and block2 only.unsafe fn getComplicationDescriptorsWithHandler( &self, handler: &DynBlock<dyn Fn(NonNull<NSArray<CLKComplicationDescriptor>>)>, )
👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate features
CLKComplicationDescriptor and block2 only.👎Deprecated: On watchOS 9.0 or later, use WidgetKit instead
Available on crate feature
CLKComplicationDescriptor only.unsafe fn widgetMigrator( &self, ) -> Retained<ProtocolObject<dyn CLKComplicationWidgetMigrator>>
Available on crate feature
CLKComplicationWidgetMigrator only.unsafe fn getPlaceholderTemplateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut CLKComplicationTemplate)>, )
👎Deprecated
Available on crate features
CLKComplication and CLKComplicationTemplate and block2 only.unsafe fn getSupportedTimeTravelDirectionsForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(CLKComplicationTimeTravelDirections)>, )
👎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.unsafe fn getTimelineStartDateForComplication_withHandler( &self, complication: &CLKComplication, handler: &DynBlock<dyn Fn(*mut NSDate)>, )
👎Deprecated: Time Travel and backwards extension of timelines are no longer supported.
Available on crate features
CLKComplication and block2 only.unsafe fn getTimelineEntriesForComplication_beforeDate_limit_withHandler( &self, complication: &CLKComplication, date: &NSDate, limit: NSUInteger, handler: &DynBlock<dyn Fn(*mut NSArray<CLKComplicationTimelineEntry>)>, )
👎Deprecated: Time Travel and backwards extension of timelines are no longer supported.
Available on crate features
CLKComplication and CLKComplicationTimelineEntry and block2 only.unsafe fn getNextRequestedUpdateDateWithHandler( &self, handler: &DynBlock<dyn Fn(*mut NSDate)>, )
👎Deprecated: Use WKRefreshBackgroundTask instead
Available on crate feature
block2 only.unsafe fn requestedUpdateDidBegin(&self)
👎Deprecated: Use WKRefreshBackgroundTask instead
unsafe fn requestedUpdateBudgetExhausted(&self)
👎Deprecated: Use WKRefreshBackgroundTask instead