SPRecentCall

public class SPRecentCall : Object

Data object representing a recent call

  • Direction of the Call

    Declaration

    Swift

    public enum Direction : Int
  • id

    Identifier of the Recent Call

    Declaration

    Swift

    @objc
    public dynamic var id: String
  • Indicates whether the call has already been seen by the user or not

    Declaration

    Swift

    @objc
    public dynamic var seen: Bool
  • The Date When the call started

    Declaration

    Swift

    @objc
    public dynamic var time: Date
  • The second party (e.g. other caller) of the call

    Declaration

    Swift

    public var secondParty: SPNumber { get set }
  • The duration of the call

    Declaration

    Swift

    public var duration: TimeInterval { get set }
  • The direction of the call (e.g. incoming or outgoing)

    Declaration

    Swift

    public var direction: SPRecentCall.Direction { get set }
  • Indicates whether the call was missed or not

    Declaration

    Swift

    @objc
    public dynamic var missed: Bool
  • The SPGateway that was used for the call

    Declaration

    Swift

    @objc
    public dynamic var gateway: SPGateway?
  • Initializes a SPRecentCall object

    Declaration

    Swift

    public convenience init(with secondParty: SPNumber, at time: Date?, for duration: TimeInterval?, direction: SPRecentCall.Direction, missed: Bool, gateway: SPGateway)
    Parameters
    secondParty

    The second party (e.g. other caller) of the call

    time

    The Date When the call started

    duration

    The duration of the call

    direction

    The direction of the call (e.g. incoming or outgoing)

    missed

    Indicates whether the call was missed or not

    gateway

    The SPGateway that was used for the call

  • Defines the primary key of the object

    Declaration

    Swift

    override public static func primaryKey() -> String?
    Return Value

    String representation of the primary key

  • Defines ignored properties by Realm

    Declaration

    Swift

    override public static func ignoredProperties() -> [String]
    Return Value

    String array of the properties names