Interface MCBrowserViewControllerDelegate
-
public interface MCBrowserViewControllerDelegate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidbrowserViewControllerDidFinish(@NotNull MCBrowserViewController browserViewController)Notifies the delegate, when the user taps the done button.default booleanbrowserViewControllerShouldPresentNearbyPeerWithDiscoveryInfo(@NotNull MCBrowserViewController browserViewController, @NotNull MCPeerID peerID, @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.voidbrowserViewControllerWasCancelled(@NotNull MCBrowserViewController browserViewController)Notifies delegate that the user taps the cancel button.
-
-
-
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.
-
-