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§
Sourceunsafe fn player_wantsToPlayGameActivity_completionHandler(
&self,
player: &GKPlayer,
activity: &GKGameActivity,
completion_handler: &DynBlock<dyn Fn(Bool)>,
)
Available on crate features GKBasePlayer and GKGameActivity and GKPlayer and block2 only.
unsafe fn player_wantsToPlayGameActivity_completionHandler( &self, player: &GKPlayer, activity: &GKGameActivity, completion_handler: &DynBlock<dyn Fn(Bool)>, )
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.