-
public interface IThingHomeManager
Home Manager.
-
-
Method Summary
Modifier and Type Method Description abstract void
queryHomeList(IThingGetHomeListCallback callback)
Get Family List. abstract void
queryHomeInfo(long id, IThingHomeResultCallback callback)
Get Family Details. abstract void
createHome(String name, double lon, double lat, String geoName, List<String> rooms, IThingHomeResultCallback callback)
Creating a Family. abstract void
registerThingHomeChangeListener(IThingHomeChangeListener listener)
Register a listener for family information changes. abstract void
unRegisterThingHomeChangeListener(IThingHomeChangeListener listener)
Unregister the listener for family information changes. abstract void
onDestroy()
On destroy. abstract void
joinHomeByInviteCode(String code, IResultCallback callback)
Join the family by invitation code. -
-
Method Detail
-
queryHomeList
abstract void queryHomeList(IThingGetHomeListCallback callback)
Get Family List.
- Parameters:
callback
- IThingGetHomeListCallback IThingGetHomeListCallback
-
queryHomeInfo
abstract void queryHomeInfo(long id, IThingHomeResultCallback callback)
Get Family Details.
- Parameters:
id
- The id of the home which you want to query.callback
- IThingHomeResultCallback IThingHomeResultCallback
-
createHome
abstract void createHome(String name, double lon, double lat, String geoName, List<String> rooms, IThingHomeResultCallback callback)
Creating a Family.
- Parameters:
name
- The name of family(Support up to 25 characters).lon
- longitude (Pass 0 if you don't set family location information).lat
- latitude (Pass 0 if you don't set family location information).geoName
- The name of home geographic location.rooms
- Room list.callback
- IThingGetHomeListCallback IThingGetHomeListCallback
-
registerThingHomeChangeListener
abstract void registerThingHomeChangeListener(IThingHomeChangeListener listener)
Register a listener for family information changes.
Such as addition, deletion of families, change of information, change of sharing list and listening forsuccessful server connection.
- Parameters:
listener
- IThingHomeChangeListener IThingHomeChangeListener
-
unRegisterThingHomeChangeListener
abstract void unRegisterThingHomeChangeListener(IThingHomeChangeListener listener)
Unregister the listener for family information changes.
- Parameters:
listener
- IThingHomeChangeListener IThingHomeChangeListener
-
onDestroy
abstract void onDestroy()
On destroy.
-
joinHomeByInviteCode
abstract void joinHomeByInviteCode(String code, IResultCallback callback)
Join the family by invitation code.
- Parameters:
code
- invitation code.callback
- IResultCallback IResultCallback
-
-
-
-