objc2_core_location/generated/
CLLocationPushServiceExtension.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_protocol!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/corelocation/cllocationpushserviceextension?language=objc)
12    pub unsafe trait CLLocationPushServiceExtension: NSObjectProtocol {
13        #[cfg(feature = "block2")]
14        /// # Safety
15        ///
16        /// `payload` generic should be of the correct type.
17        #[unsafe(method(didReceiveLocationPushPayload:completion:))]
18        #[unsafe(method_family = none)]
19        unsafe fn didReceiveLocationPushPayload_completion(
20            &self,
21            payload: &NSDictionary<NSString, AnyObject>,
22            completion: &block2::DynBlock<dyn Fn()>,
23        );
24
25        #[optional]
26        #[unsafe(method(serviceExtensionWillTerminate))]
27        #[unsafe(method_family = none)]
28        unsafe fn serviceExtensionWillTerminate(&self);
29    }
30);