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