pub unsafe trait SWHighlightCenterDelegate: NSObjectProtocol {
// Provided method
unsafe fn highlightCenterHighlightsDidChange(
&self,
highlight_center: &SWHighlightCenter,
)
where Self: Sized + Message { ... }
}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§
Sourceunsafe fn highlightCenterHighlightsDidChange(
&self,
highlight_center: &SWHighlightCenter,
)
unsafe fn highlightCenterHighlightsDidChange( &self, highlight_center: &SWHighlightCenter, )
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.