GKGameActivityListener

Trait GKGameActivityListener 

Source
pub unsafe trait GKGameActivityListener {
    // Provided method
    unsafe fn player_wantsToPlayGameActivity_completionHandler(
        &self,
        player: &GKPlayer,
        activity: &GKGameActivity,
        completion_handler: &DynBlock<dyn Fn(Bool)>,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature GKGameActivityListener only.
Expand description

Provided Methods§

Source

unsafe fn player_wantsToPlayGameActivity_completionHandler( &self, player: &GKPlayer, activity: &GKGameActivity, completion_handler: &DynBlock<dyn Fn(Bool)>, )
where Self: Sized + Message,

Available on crate features GKBasePlayer and GKGameActivity and GKPlayer and block2 only.

Called when a player intends to play for a specific game activity. A completion handler block is provided to indicate whether the activity was successfully handled.

Trait Implementations§

Source§

impl ProtocolType for dyn GKGameActivityListener

Source§

const NAME: &'static str = "GKGameActivityListener"

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 GKGameActivityListener

Implementations on Foreign Types§

Source§

impl<T> GKGameActivityListener for ProtocolObject<T>

Implementors§