SPNumber
public class SPNumber : NSObject
Data object representing a phone number
-
The string representation of the phone call
Declaration
Swift
@objc public dynamic var phoneNumber: String -
The associated CNContact on the users phone (if there is one)
Declaration
Swift
@objc public var contact: CNContact? { get } -
Initializes a SPNumber object
Declaration
Swift
public convenience init(withNumber phoneNumber: String)Parameters
phoneNumberA string representation of the phone call
-
Returns a prettified version of the stored phone number
Declaration
Swift
@objc public func prettyPhoneNumber() -> StringReturn Value
Prettified version of the phone number
-
Checks whether a number is equal to another one
Declaration
Swift
public func isEqual(to phoneNumberString: String) -> BoolParameters
phoneNumberStringA string of the other phone number to cross-check
Return Value
Boolean, whether the number is equal or not
SPNumber Class Reference