Interface GKPeerPickerControllerDelegate


  • @Deprecated
    public interface GKPeerPickerControllerDelegate
    Deprecated.
    callbacks to the GKPeerPickerController delegate API-Since: 3.0 Deprecated-Since: 7.0 Deprecated-Message: Use MCBrowserViewController along with MCBrowserViewControllerDelegate from the MultipeerConnectivity framework.
    • Method Detail

      • peerPickerControllerDidConnectPeerToSession

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

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

        @NotNull
        default @NotNull GKSession peerPickerControllerSessionForConnectionType​(@NotNull
                                                                                @NotNull GKPeerPickerController picker,
                                                                                long type)
        Deprecated.
        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​(@NotNull
                                                   @NotNull GKPeerPickerController picker)
        Deprecated.
        Notifies delegate that the user cancelled the picker.