TrackRequest
public struct TrackRequest : Request
Track API のリクエスト情報を保持する構造体です。
SDK内部で利用するタイプであり、通常のSDK利用でこちらのタイプを利用することはありません。
-
Declaration
Swift
public typealias Response = TrackResponse -
ビジターID
Declaration
Swift
public let visitorId: String -
シーンID
Declaration
Swift
public let sceneId: SceneId -
ページビューID
Declaration
Swift
public let pvId: PvId -
オリジナルページビューID
Declaration
Swift
public let originalPvId: PvId -
Declaration
Swift
public var baseURL: URL { get } -
Declaration
Swift
public var path: String { get } -
Declaration
Swift
public var method: HTTPMethod { get } -
Declaration
Swift
public var queryParameters: [String : Any]? { get } -
Declaration
Swift
public var bodyParameters: BodyParameters? { get } -
Declaration
Swift
public var headerFields: [String : String] { get } -
Declaration
Swift
public var dataParser: DataParser { get } -
Declaration
Swift
public func intercept(urlRequest: URLRequest) throws -> URLRequest -
Declaration
Swift
public func intercept(object: Any, urlResponse: HTTPURLResponse) throws -> Any -
Declaration
Swift
public func response(from object: Any, urlResponse: HTTPURLResponse) throws -> TrackResponse -
リクエストに指定されたイベントが含まれているかチェックする。
Declaration
Swift
public func contains(eventName: EventName) -> BoolParameters
eventNameイベント名
Return Value
指定されたイベント名が含まれる場合は
trueを返し、含まれない場合はfalseを返します。
View on GitHub
Install in Dash
TrackRequest Structure Reference