pub unsafe trait LARightUI:
ClassType
+ Sized
+ Sealed {
// Provided method
unsafe fn authorizeWithLocalizedReason_inPresentationContext_completion(
&self,
localized_reason: &NSString,
presentation_context: &LAPresentationContext,
handler: &DynBlock<dyn Fn(*mut NSError)>,
) { ... }
}
Available on crate feature
LARight_UI
only.Expand description
Category “UI” on LARight
.
Groups methods that control aspects of the UI used for authorizing a right
Provided Methods§
Available on crate feature LAPresentationContext
and crate feature block2
and crate feature objc2-app-kit
and macOS only.
LAPresentationContext
and crate feature block2
and crate feature objc2-app-kit
and macOS only.Tries to authorize the right.
Parameter localizedReason
: Localized explanation for the authorization. Appears in the UI presented to the user.
Parameter presentationContext
: Container where the authorization UI will be presented.
Parameter handler
: Completion handler called after the authorization finishses. Returns an error when the authorization fails.
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.