Swift SDK Version

GraphResponse

publicstructGraphResponse:GraphResponseProtocol
Represents a generic response that was received when GraphRequest succeeded.
  • Initializes a GraphResponse.

    Declaration

    Swift
    publicinit(rawResponse:Any?)

    Parameters

    rawResponse
    Raw response received from a server. Usually is represented by either a Dictionary or Array.
  • Converts and returns a response in a form of Dictionary<String, Any>. If the conversion fails or there is was response - returns nil.

    Declaration

    Swift
    publicvardictionaryValue:[String:Any]?{get}
  • Converts and returns a response in a form of Array<Any> If the conversion fails or there is was response - returns nil.

    Declaration

    Swift
    publicvararrayValue:[Any]?{get}
  • Converts and returns a response in a form of String. If the conversion fails or there is was response - returns nil.

    Declaration

    Swift
    publicvarstringValue:String?{get}