pub unsafe trait NSUserActivityCLSDeepLinks:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn isClassKitDeepLink(&self) -> bool { ... }
unsafe fn contextIdentifierPath(
&self,
) -> Option<Retained<NSArray<NSString>>> { ... }
}
Available on crate feature
NSUserActivity_CLSDeepLinks
only.Expand description
Category “CLSDeepLinks” on NSUserActivity
.
Provided Methods§
Sourceunsafe fn isClassKitDeepLink(&self) -> bool
unsafe fn isClassKitDeepLink(&self) -> bool
Returns whether the user activity is a ClassKit deep link.
Sourceunsafe fn contextIdentifierPath(&self) -> Option<Retained<NSArray<NSString>>>
unsafe fn contextIdentifierPath(&self) -> Option<Retained<NSArray<NSString>>>
Returns the context identifier path you should deep link to.
For example for the context identifier path
@["swift-programming-book",``"chapter1"],
your app should direct the user to
_chapter1_in
swift-programming-book.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.