AI-generated Key Takeaways
-
The Nearby Messages API for iOS enables communication between devices in close proximity.
-
This API uses publications to share messages and subscriptions to receive them, managed by the GNSMessageManager.
-
Strategies and parameters, like GNSStrategy and GNSBeaconStrategy, control device detection and message delivery.
-
GNSPermission handles user authorization for using Nearby capabilities.
Class List
The classes and protocols in Nearby Messages API for iOS:
CGNSBeaconStrategy | The strategy to use to scan for beacons |
CGNSBeaconStrategyParams | Optional params for a beacon strategy. See properties with the same names in GNSBeaconStrategy |
CGNSMessage | A message is a published object that is delivered between nearby devices |
CGNSMessageManager | The message manager lets you create publications and subscriptions |
CGNSMessageManagerParams | Additional parameters for the message manager |
CGNSPermission | This class lets you manage the Nearby permission state for the app on the current device |
C<GNSPublication> | A publication object represents a message published to nearby devices |
CGNSPublicationParams | Optional parameters for a publication |
CGNSStrategy | The strategy to use to detect nearby devices |
CGNSStrategyParams | Optional params for a strategy. See properties with the same names in GNSStrategy |
C<GNSSubscription> | A subscription object represents the act of subscribing to messages of a certain type from nearby devices |
CGNSSubscriptionParams | Optional parameters for a subscription |