SWHighlightCenterDelegate

Trait SWHighlightCenterDelegate 

Source
pub unsafe trait SWHighlightCenterDelegate: NSObjectProtocol {
    // Provided method
    unsafe fn highlightCenterHighlightsDidChange(
        &self,
        highlight_center: &SWHighlightCenter,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature SWHighlightCenter only.
Expand description

The delegate is notified when there are changes to the list of surfaced highlights, or when the enablement settings change.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn highlightCenterHighlightsDidChange( &self, highlight_center: &SWHighlightCenter, )
where Self: Sized + Message,

Notifies the delegate that the list, or rank order of surfaced highlights has changed.

When this method is called, it is the app’s responsibility to update any displayed highlights to match the updated list. Only the highlights provided should have an indication of having been shared. If no highlights are provided in the list, any links previously indicated as shared should be removed. The array is a priority-ordered list, where the first element in the array is deemed to be most relevant to the user at the time this method is called. The list of provided highlights will be empty if there are no highlights, or when the user has not given permission for a particular app to display highlights.

Trait Implementations§

Source§

impl ProtocolType for dyn SWHighlightCenterDelegate

Source§

const NAME: &'static str = "SWHighlightCenterDelegate"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn SWHighlightCenterDelegate

Implementations on Foreign Types§

Source§

impl<T> SWHighlightCenterDelegate for ProtocolObject<T>

Implementors§