Interface MCBrowserViewControllerDelegate


  • public interface MCBrowserViewControllerDelegate
    • Method Detail

      • browserViewControllerShouldPresentNearbyPeerWithDiscoveryInfo

        default boolean browserViewControllerShouldPresentNearbyPeerWithDiscoveryInfo​(@NotNull
                                                                                      @NotNull MCBrowserViewController browserViewController,
                                                                                      @NotNull
                                                                                      @NotNull MCPeerID peerID,
                                                                                      @Nullable
                                                                                      @Nullable NSDictionary<java.lang.String,​java.lang.String> info)
        Notifies delegate that a peer was found; discoveryInfo can be used to determine whether the peer should be presented to the user, and the delegate should return a YES if the peer should be presented; this method is optional, if not implemented every nearby peer will be presented to the user.
      • browserViewControllerDidFinish

        void browserViewControllerDidFinish​(@NotNull
                                            @NotNull MCBrowserViewController browserViewController)
        Notifies the delegate, when the user taps the done button.
      • browserViewControllerWasCancelled

        void browserViewControllerWasCancelled​(@NotNull
                                               @NotNull MCBrowserViewController browserViewController)
        Notifies delegate that the user taps the cancel button.