pub unsafe trait CLLocationPushServiceExtension: NSObjectProtocol {
// Provided methods
unsafe fn didReceiveLocationPushPayload_completion(
&self,
payload: &NSDictionary<NSString, AnyObject>,
completion: &DynBlock<dyn Fn()>,
)
where Self: Sized + Message { ... }
unsafe fn serviceExtensionWillTerminate(&self)
where Self: Sized + Message { ... }
}Available on crate feature
CLLocationPushServiceExtension only.Expand description
Provided Methods§
Sourceunsafe fn didReceiveLocationPushPayload_completion(
&self,
payload: &NSDictionary<NSString, AnyObject>,
completion: &DynBlock<dyn Fn()>,
)
Available on crate feature block2 only.
unsafe fn didReceiveLocationPushPayload_completion( &self, payload: &NSDictionary<NSString, AnyObject>, completion: &DynBlock<dyn Fn()>, )
block2 only.§Safety
payload generic should be of the correct type.
unsafe fn serviceExtensionWillTerminate(&self)
Trait Implementations§
impl<T> ImplementedBy<T> for dyn CLLocationPushServiceExtension
Source§impl ProtocolType for dyn CLLocationPushServiceExtension
impl ProtocolType for dyn CLLocationPushServiceExtension
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".