-
public interface IThingHomePlugin
Home Plugin.
-
-
Method Summary
Modifier and Type Method Description abstract IThingHome
newHomeInstance(long homeId)
create a family instance.if you need to access home data, do not use this method. abstract IThingHomePatch
newHomePatchInstance(long homeId)
abstract IThingHomeManager
getHomeManagerInstance()
Get an instance of Family Manager. abstract IThingRoom
newRoomInstance(long roomId)
Creating a room instance. abstract IThingHomeMember
getMemberInstance()
Get an instance of Family Member. abstract IHomeCacheManager
getRelationInstance()
Get an instance of Family Relation. abstract IThingHomeDataManager
getDataInstance()
data manager of cached home data, access all home related data through this interface abstract IThingHomeDataLocalCache
getCacheInstance()
Get an instance of Family data local cache impl. abstract IThingDevice
newDeviceInstance(String devId)
Creating a device instance. abstract IThingGroup
newGroupInstance(long groupId)
Creating a group instance. abstract IThingDeviceMultiControl
getDeviceMultiControlInstance()
abstract IThingHomeSpeech
getSpeechInstance()
abstract void
onDestroy()
On destroy. -
-
Method Detail
-
newHomeInstance
abstract IThingHome newHomeInstance(long homeId)
create a family instance.if you need to access home data, do not use this method. use getDataInstance instead
- Parameters:
homeId
- The id of which home you want to create an instance.
-
newHomePatchInstance
abstract IThingHomePatch newHomePatchInstance(long homeId)
-
getHomeManagerInstance
abstract IThingHomeManager getHomeManagerInstance()
Get an instance of Family Manager.
-
newRoomInstance
abstract IThingRoom newRoomInstance(long roomId)
Creating a room instance.
- Parameters:
roomId
- The id of which room you want to create an instance.
-
getMemberInstance
abstract IThingHomeMember getMemberInstance()
Get an instance of Family Member.
-
getRelationInstance
abstract IHomeCacheManager getRelationInstance()
Get an instance of Family Relation.
-
getDataInstance
abstract IThingHomeDataManager getDataInstance()
data manager of cached home data, access all home related data through this interface
-
getCacheInstance
abstract IThingHomeDataLocalCache getCacheInstance()
Get an instance of Family data local cache impl.
-
newDeviceInstance
@Deprecated() abstract IThingDevice newDeviceInstance(String devId)
Creating a device instance.
- Parameters:
devId
- The id of which device you want to create an instance.
-
newGroupInstance
@Deprecated() abstract IThingGroup newGroupInstance(long groupId)
Creating a group instance.
- Parameters:
groupId
- The id of which group you want to create an instance.
-
getDeviceMultiControlInstance
abstract IThingDeviceMultiControl getDeviceMultiControlInstance()
-
getSpeechInstance
abstract IThingHomeSpeech getSpeechInstance()
-
onDestroy
abstract void onDestroy()
On destroy.
-
-
-
-