init(identifier:dateCreated:caller:callRecordType:callCapability:callDuration:unseen:numberOfCalls:)
Creates a call record with the details about the call.
Declaration
@nonobjc convenience init(identifier: String, dateCreated: Date? = nil, caller: INPerson? = nil, callRecordType: INCallRecordType = .unknown, callCapability: INCallCapability = .unknown, callDuration: Double? = nil, unseen: Bool? = nil, numberOfCalls: Int? = nil)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.