Tuya iOS Smart Life App SDK 5.15.0
ThingSmartDoorBellManager Class Reference

#import <ThingSmartDoorBellManager.h>

Inheritance diagram for ThingSmartDoorBellManager:

Instance Methods

(NSInteger doorbellRingTimeOut) - __deprecated_msg
 set the time out of call, if not answer when time out, the call will be canceled More...
 
(void) - addObserver:
 Add observer for doorbell call. More...
 
(ThingDoorBellError- answerDoorBellCall:
 answer the doorbell call of specified message id More...
 
(ThingDoorBellError- refuseDoorBellCall:
 refuse the doorbell call of specified message id More...
 
(ThingDoorBellError- hangupDoorBellCall:
 hangup the doorbell call of specified message id More...
 
(void) - onPreviewSuccess:
 the camera preview successful More...
 
(void) - generateCall:
 generate a doorbell call with call message data More...
 
(ThingSmartDoorBellCallModel *) - callModelWithMessageId:
 get the call model for the specified message id, if no validate call model, return nil More...
 
(void) - removeObserver:
 remove the specified observer for doorbell call More...
 
(void) - removeAllObservers
 remove all observer More...
 
(void) - didReceiveVoipDatas:
 
(NSInteger doorbellRingTimeOut) - __deprecated_msg
 set the time out of call, if not answer when time out, the call will be canceled More...
 
(void) - addObserver:
 Add observer for doorbell call. More...
 
(ThingDoorBellError- answerDoorBellCall:
 answer the doorbell call of specified message id More...
 
(ThingDoorBellError- refuseDoorBellCall:
 refuse the doorbell call of specified message id More...
 
(ThingDoorBellError- hangupDoorBellCall:
 hangup the doorbell call of specified message id More...
 
(void) - onPreviewSuccess:
 the camera preview successful More...
 
(void) - generateCall:
 generate a doorbell call with call message data More...
 
(ThingSmartDoorBellCallModel *) - callModelWithMessageId:
 get the call model for the specified message id, if no validate call model, return nil More...
 
(void) - removeObserver:
 remove the specified observer for doorbell call More...
 
(void) - removeAllObservers
 remove all observer More...
 
(void) - didReceiveVoipDatas:
 

Class Methods

(instancetype) + sharedInstance
 
(instancetype) + sharedInstance
 

Properties

NSArray< id< ThingSmartDoorBellObserver > > * allObservers
 get all observers More...
 
id< ThingSmartDoorBellConfigDataSourcedoorBellConfigDataSource
 
BOOL ignoreWhenCalling
 If a device is already in a call, subsequent calls to this device will be automatically ignored when set it YES. More...
 

Detailed Description

Definition at line 77 of file ThingSmartDoorBellManager.h.

Method Documentation

◆ __deprecated_msg [1/2]

- (NSInteger doorbellRingTimeOut) __deprecated_msg ("Use - instead")  [doorBellConfigDataSource doorbellRingTimeOut:withDevId:]

set the time out of call, if not answer when time out, the call will be canceled

◆ __deprecated_msg [2/2]

- (NSInteger doorbellRingTimeOut) __deprecated_msg ("Use - instead")  [doorBellConfigDataSource doorbellRingTimeOut:withDevId:]

set the time out of call, if not answer when time out, the call will be canceled

◆ addObserver: [1/2]

- (void) addObserver: (id< ThingSmartDoorBellObserver >)  observer

Add observer for doorbell call.

◆ addObserver: [2/2]

- (void) addObserver: (id< ThingSmartDoorBellObserver >)  observer

Add observer for doorbell call.

◆ answerDoorBellCall: [1/2]

- (ThingDoorBellError) answerDoorBellCall: (NSString *)  messageId

answer the doorbell call of specified message id

◆ answerDoorBellCall: [2/2]

- (ThingDoorBellError) answerDoorBellCall: (NSString *)  messageId

answer the doorbell call of specified message id

◆ callModelWithMessageId: [1/2]

- (ThingSmartDoorBellCallModel *) callModelWithMessageId: (NSString *)  messageId

get the call model for the specified message id, if no validate call model, return nil

◆ callModelWithMessageId: [2/2]

- (ThingSmartDoorBellCallModel *) callModelWithMessageId: (NSString *)  messageId

get the call model for the specified message id, if no validate call model, return nil

◆ didReceiveVoipDatas: [1/2]

- (void) didReceiveVoipDatas: (ThingSmartDoorBellCallModel *)  callModel

◆ didReceiveVoipDatas: [2/2]

- (void) didReceiveVoipDatas: (ThingSmartDoorBellCallModel *)  callModel

◆ generateCall: [1/2]

- (void) generateCall: (NSDictionary *)  params

generate a doorbell call with call message data

◆ generateCall: [2/2]

- (void) generateCall: (NSDictionary *)  params

generate a doorbell call with call message data

◆ hangupDoorBellCall: [1/2]

- (ThingDoorBellError) hangupDoorBellCall: (NSString *)  messageId

hangup the doorbell call of specified message id

◆ hangupDoorBellCall: [2/2]

- (ThingDoorBellError) hangupDoorBellCall: (NSString *)  messageId

hangup the doorbell call of specified message id

◆ onPreviewSuccess: [1/2]

- (void) onPreviewSuccess: (NSString *)  messageId

the camera preview successful

◆ onPreviewSuccess: [2/2]

- (void) onPreviewSuccess: (NSString *)  messageId

the camera preview successful

◆ refuseDoorBellCall: [1/2]

- (ThingDoorBellError) refuseDoorBellCall: (NSString *)  messageId

refuse the doorbell call of specified message id

◆ refuseDoorBellCall: [2/2]

- (ThingDoorBellError) refuseDoorBellCall: (NSString *)  messageId

refuse the doorbell call of specified message id

◆ removeAllObservers [1/2]

- (void) removeAllObservers

remove all observer

◆ removeAllObservers [2/2]

- (void) removeAllObservers

remove all observer

◆ removeObserver: [1/2]

- (void) removeObserver: (id< ThingSmartDoorBellObserver >)  observer

remove the specified observer for doorbell call

◆ removeObserver: [2/2]

- (void) removeObserver: (id< ThingSmartDoorBellObserver >)  observer

remove the specified observer for doorbell call

◆ sharedInstance [1/2]

+ (instancetype) sharedInstance

◆ sharedInstance [2/2]

+ (instancetype) sharedInstance

Property Documentation

◆ allObservers

- (NSArray< id< ThingSmartDoorBellObserver > > *) allObservers
readnonatomicstrong

get all observers

Definition at line 80 of file ThingSmartDoorBellManager.h.

◆ doorBellConfigDataSource

- (id< ThingSmartDoorBellConfigDataSource >) doorBellConfigDataSource
readwritenonatomicweak

Definition at line 82 of file ThingSmartDoorBellManager.h.

◆ ignoreWhenCalling

- (BOOL) ignoreWhenCalling
readwritenonatomicassign

If a device is already in a call, subsequent calls to this device will be automatically ignored when set it YES.

Definition at line 85 of file ThingSmartDoorBellManager.h.


The documentation for this class was generated from the following files: