initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:numberOfCalls:
Initializes a call record with the details about the call.
Declaration
- (instancetype) initWithIdentifier:(NSString *) identifier dateCreated:(NSDate *) dateCreated caller:(INPerson *) caller callRecordType:(INCallRecordType) callRecordType callCapability:(INCallCapability) callCapability callDuration:(NSNumber *) callDuration unseen:(NSNumber *) unseen numberOfCalls:(NSNumber *) numberOfCalls;Parameters
- identifier:
A unique string that you can use to identify the call in your app.
- dateCreated:
The date and time at which the call started.
- caller:
The person who participated in the call with the current user.
- callRecordType:
The type of call. Use this parameter to specify whether the call was incoming, was outgoing, corresponds to a voicemail, and so on.
- callCapability:
An indicator of whether the call supports audio or video.
- callDuration:
The duration of the call, measured in seconds.
- unseen:
A Boolean indicating whether the user saw the call.
- numberOfCalls:
The number of calls associated with the call record.
Return Value
An initialized INCallRecord object or nil if the object could not be initialized.
See Also
Initializing a Call Record
initWithIdentifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:numberOfCalls:initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked: