-
public interface IThingHomePluginHome Plugin.
-
-
Method Summary
Modifier and Type Method Description abstract IThingHomenewHomeInstance(long homeId)create a family instance.if you need to access home data, do not use this method. abstract IThingHomePatchnewHomePatchInstance(long homeId)abstract IThingHomeManagergetHomeManagerInstance()Get an instance of Family Manager. abstract IThingRoomnewRoomInstance(long roomId)Creating a room instance. abstract IThingHomeMembergetMemberInstance()Get an instance of Family Member. abstract IHomeCacheManagergetRelationInstance()Get an instance of Family Relation. abstract IThingHomeDataManagergetDataInstance()data manager of cached home data, access all home related data through this interface abstract IThingHomeDataLocalCachegetCacheInstance()Get an instance of Family data local cache impl. abstract IThingDevicenewDeviceInstance(String devId)Creating a device instance. abstract IThingGroupnewGroupInstance(long groupId)Creating a group instance. abstract IThingDeviceMultiControlgetDeviceMultiControlInstance()abstract IThingHomeSpeechgetSpeechInstance()abstract voidonDestroy()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.
-
-
-
-