Interface MastershipChangeService

All Superinterfaces:
AutoCloseable
All Known Implementing Classes:
DeviceMastershipManager, MastershipServiceDelegate

public interface MastershipChangeService extends AutoCloseable
This service is for registering any application intent to be informed about device mastership changes. Service provides three events. There is no need to have two different method for slave or disconnect because application just have to stop working with the device in both cases.
Since:
0.5.0 Nitrogen
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onBecomeOwner(@NonNull DeviceInfo deviceInfo)
    Event when device is ready as a master.
    void
    onLoseOwnership(@NonNull DeviceInfo deviceInfo)
    Event when device disconnected or become slave.

    Methods inherited from interface java.lang.AutoCloseable

    close