Interface GKPeerPickerControllerDelegate


  • public interface GKPeerPickerControllerDelegate
    callbacks to the GKPeerPickerController delegate
    • Method Detail

      • peerPickerControllerDidConnectPeerToSession

        default void peerPickerControllerDidConnectPeerToSession​(GKPeerPickerController picker,
                                                                 java.lang.String peerID,
                                                                 GKSession session)
        Notifies delegate that the peer was connected to a GKSession.
      • peerPickerControllerDidSelectConnectionType

        default void peerPickerControllerDidSelectConnectionType​(GKPeerPickerController picker,
                                                                 long type)
        Notifies delegate that a connection type was chosen by the user.
      • peerPickerControllerSessionForConnectionType

        default GKSession peerPickerControllerSessionForConnectionType​(GKPeerPickerController picker,
                                                                       long type)
        Notifies delegate that the connection type is requesting a GKSession object. You should return a valid GKSession object for use by the picker. If this method is not implemented or returns 'nil', a default GKSession is created on the delegate's behalf.
      • peerPickerControllerDidCancel

        default void peerPickerControllerDidCancel​(GKPeerPickerController picker)
        Notifies delegate that the user cancelled the picker.