Contents

initWithIdentifier:dateCreated:callRecordType:callCapability:callDuration:unseen:participants:numberOfCalls:isCallerIdBlocked:

Creates a call record with the details about the call.

Declaration

- (instancetype) initWithIdentifier:(NSString *) identifier dateCreated:(NSDate *) dateCreated callRecordType:(INCallRecordType) callRecordType callCapability:(INCallCapability) callCapability callDuration:(NSNumber *) callDuration unseen:(NSNumber *) unseen participants:(NSArray<INPerson *> *) participants numberOfCalls:(NSNumber *) numberOfCalls isCallerIdBlocked:(NSNumber *) isCallerIdBlocked;

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.

  • 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.

  • participants:

    The recipient of the user’s call request.

  • numberOfCalls:

    The number of calls associated with the call record.

  • isCallerIdBlocked:

    A Boolean value indicating if user’s callerID is showing during a call.

Return Value

An initialized INCallRecord object or nil if the object could not be initialized.

See Also

Initializing a Call Record