DictionaryProtocol

public protocol DictionaryProtocol : DictionaryFragment

DictionaryProtocol defines a set of methods for readonly accessing dictionary data.

  • Undocumented

    Declaration

    Swift

    var count: Int { get }
  • Undocumented

    Declaration

    Swift

    var keys: Array<String> { get }
  • Undocumented

    Declaration

    Swift

    func value(forKey key: String) -> Any?
  • Undocumented

    Declaration

    Swift

    func string(forKey key: String) -> String?
  • Undocumented

    Declaration

    Swift

    func number(forKey key: String) -> NSNumber?
  • Undocumented

    Declaration

    Swift

    func int(forKey key: String) -> Int
  • Undocumented

    Declaration

    Swift

    func int64(forKey key: String) -> Int64
  • Undocumented

    Declaration

    Swift

    func float(forKey key: String) -> Float
  • Undocumented

    Declaration

    Swift

    func double(forKey key: String) -> Double
  • Undocumented

    Declaration

    Swift

    func boolean(forKey key: String) -> Bool
  • Undocumented

    Declaration

    Swift

    func date(forKey key: String) -> Date?
  • Undocumented

    Declaration

    Swift

    func blob(forKey key: String) -> Blob?
  • Undocumented

    Declaration

    Swift

    func array(forKey key: String) -> ArrayObject?
  • Undocumented

    Declaration

    Swift

    func dictionary(forKey key: String) -> DictionaryObject?
  • Undocumented

    Declaration

    Swift

    func contains(key: String) -> Bool
  • Undocumented

    Declaration

    Swift

    func toDictionary() -> Dictionary<String, Any>