1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::GameKit::*;

extern_protocol!(
    pub unsafe trait GKSavedGameListener: NSObjectProtocol {
        #[cfg(all(feature = "GameKit_GKPlayer", feature = "GameKit_GKSavedGame"))]
        #[optional]
        #[method(player:didModifySavedGame:)]
        unsafe fn player_didModifySavedGame(&self, player: &GKPlayer, saved_game: &GKSavedGame);

        #[cfg(all(
            feature = "Foundation_NSArray",
            feature = "GameKit_GKPlayer",
            feature = "GameKit_GKSavedGame"
        ))]
        #[optional]
        #[method(player:hasConflictingSavedGames:)]
        unsafe fn player_hasConflictingSavedGames(
            &self,
            player: &GKPlayer,
            saved_games: &NSArray<GKSavedGame>,
        );
    }

    unsafe impl ProtocolType for dyn GKSavedGameListener {}
);