Package 

Interface IThingHomeDeviceShare

    • Method Detail

      • enableDevShare

        @Deprecated() abstract void enableDevShare(String devId, long memberId, IResultCallback callback)

        Share the device with a user.

        Parameters:
        devId - Device identification
        memberId - User identification
        callback - Result callback
      • disableDevShare

         abstract void disableDevShare(String devId, long memberId, IResultCallback callback)

        Close the sharing to a user's device.

        Parameters:
        devId - Device identification
        memberId - User identification
        callback - Result callback
      • removeReceivedDevShare

         abstract void removeReceivedDevShare(String devId, IResultCallback callback)

        Remove received device sharing.

        Parameters:
        devId - Device identification
        callback - Result callback
      • addShareWithHomeId

         abstract void addShareWithHomeId(long homeId, String countryCode, String userAccount, List<String> devIds, IThingResultCallback<SharedUserInfoBean> callback)

        Batch add device sharing with a home (Addendum).

        Parameters:
        homeId - Home identification
        countryCode - Country identification
        userAccount - The account of a user
        devIds - Batch devices
        callback - Result callback
      • addShare

         abstract void addShare(long homeId, String countryCode, String userAccount, ShareIdBean bean, boolean autoSharing, IThingResultCallback<SharedUserInfoBean> callback)

        Share the device with a user. You can customize which devices can be shared.Executing this method will overwrite the previous shared device.

        Parameters:
        homeId - Home identification
        countryCode - Country identification
        userAccount - The account of a user
        bean - The devices you want to share ShareIdBean
        autoSharing - Whether to support automatic sharing
        callback - Result callback
      • addShareWithMemberId

         abstract void addShareWithMemberId(long memberId, List<String> devIds, IResultCallback callback)

        Batch add device sharing (Data Append).

        Parameters:
        memberId - User identification
        devIds - Batch devices
        callback - Result callback
      • renameShareNickname

         abstract void renameShareNickname(long memberId, String name, IResultCallback callback)

        Modify the user information of device sharers.

        Parameters:
        memberId - User identification
        name - New name of sharer
        callback - Result callback
      • renameReceivedShareNickname

         abstract void renameReceivedShareNickname(long memberId, String name, IResultCallback callback)

        Modify the user information of the person being shared.

        Parameters:
        memberId - User identification
        name - New name of the person being shared
        callback - Result callback
      • removeUserShare

         abstract void removeUserShare(long memberId, IResultCallback callback)

        Delete a device share that has been shared to a user.

        Parameters:
        memberId - User identification
        callback - Result callback
      • removeReceivedUserShare

         abstract void removeReceivedUserShare(long memberId, IResultCallback callback)

        Delete a device that previously received a user's share.

        Parameters:
        memberId - User identification
        callback - Result callback
      • onDestroy

         abstract void onDestroy()

        Recycling Resources.

      • inviteShare

         abstract void inviteShare(String devId, String userAccount, String countryCode, IThingResultCallback<Integer> callback)

        Send a device sharing invitation.

        Parameters:
        devId - The id of the device you want to share
        userAccount - Account of a user
        countryCode - Country identification
        callback - Result callback, returns the invitation id
      • confirmShareInviteShare

         abstract void confirmShareInviteShare(int shareId, IResultCallback callback)

        Accepting invitations to share device.

        Parameters:
        shareId - Invitation id of device share
        callback - Result callback
      • addShareUserForGroup

         abstract void addShareUserForGroup(long homeId, String countryCode, String userAccount, long groupId, IResultCallback callback)

        Shares groups to other users.

        Parameters:
        homeId - Home identification
        countryCode - Country identification
        userAccount - The account of a user
        groupId - Group identification
        callback - Result callback
      • removeGroupShare

         abstract void removeGroupShare(long groupId, long memberId, IResultCallback callback)

        Removes the device sharing group from a member.

        Parameters:
        groupId - Group identification
        memberId - User identification
        callback - Result callback