interface NearbyConnectionObserver (source)
Interface definition for observing changes in a NearbyConnection.
Called when a message has been successfully delivered to a neighboring device.
Called when a message is received from a neighboring device.
Called whenever the connection’s state is set. In the absence of failures, the new state should differ from the prior state, but that is not guaranteed.
Loads a file from the resources folder and returns its content as a string object.