Contents

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

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

  • 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