NCWidgetSearchViewDelegate

Trait NCWidgetSearchViewDelegate 

Source
pub unsafe trait NCWidgetSearchViewDelegate: NSObjectProtocol {
    // Provided methods
    unsafe fn widgetSearch_searchForTerm_maxResults(
        &self,
        controller: &NCWidgetSearchViewController,
        search_term: &NSString,
        max: NSUInteger,
    )
       where Self: Sized + Message { ... }
    unsafe fn widgetSearchTermCleared(
        &self,
        controller: &NCWidgetSearchViewController,
    )
       where Self: Sized + Message { ... }
    unsafe fn widgetSearch_resultSelected(
        &self,
        controller: &NCWidgetSearchViewController,
        object: &AnyObject,
    )
       where Self: Sized + Message { ... }
}
👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature NCWidgetSearchViewController only.
Expand description

Provided Methods§

Source

unsafe fn widgetSearch_searchForTerm_maxResults( &self, controller: &NCWidgetSearchViewController, search_term: &NSString, max: NSUInteger, )
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetSearchTermCleared( &self, controller: &NCWidgetSearchViewController, )
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
Source

unsafe fn widgetSearch_resultSelected( &self, controller: &NCWidgetSearchViewController, object: &AnyObject, )
where Self: Sized + Message,

👎Deprecated: Use WidgetKit instead. Today View extensions have been deprecated.
Available on crate feature objc2-app-kit and macOS only.
§Safety

object should be of the correct type.

Trait Implementations§

Source§

impl ProtocolType for dyn NCWidgetSearchViewDelegate

Source§

const NAME: &'static str = "NCWidgetSearchViewDelegate"

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 NCWidgetSearchViewDelegate

Implementations on Foreign Types§

Source§

impl<T> NCWidgetSearchViewDelegate for ProtocolObject<T>

Implementors§