Interface MastershipChangeService
- All Known Implementing Classes:
- DeviceMastershipManager,- MastershipServiceDelegate
public interface MastershipChangeService
This service is for registering any application intent to be informed about device mastership changes.
 Service provides three events.
 
- onBecomeOwner(DeviceInfo)is called when device is fully mastered by controller
- onLoseOwnership(DeviceInfo)is called when device is disconnected or is being to be slave
- Since:
- 0.5.0 Nitrogen
- 
Method SummaryModifier and TypeMethodDescriptionvoidonBecomeOwner(@NonNull DeviceInfo deviceInfo) Event when device is ready as a master.voidonLoseOwnership(@NonNull DeviceInfo deviceInfo) Event when device disconnected or become slave.
- 
Method Details- 
onBecomeOwnerEvent when device is ready as a master. This event is evoked byOwnershipChangeListener.becomeMaster(DeviceInfo)- Parameters:
- deviceInfo- connected switch identification
 
- 
onLoseOwnershipEvent when device disconnected or become slave. This event is evoked byOwnershipChangeListener.becomeSlaveOrDisconnect(DeviceInfo)- Parameters:
- deviceInfo- connected switch identification
 
 
-