VGSCollect

public class VGSCollect

An object you use for observing VGSTextField State and send data to your organization vault.

Custom HTTP Headers

  • Set your custom HTTP headers.

    Declaration

    Swift

    public var customHeaders: [String : String]? { get set }

Observe VGSTextField states

Get Registered VGSTextFields

Initialization

  • Initialization.

    Declaration

    Swift

    public init(id: String, environment: String, hostname: String? = nil, satellitePort: Int? = nil)

    Parameters

    id

    String object, your organization vault id.

    environment

    String object, your organization vault environment with data region.(e.g. “live”, “live-eu1”, “sandbox”).

    hostname

    String? object, custom Hostname, if not set, data will be sent to Vault Url. Default is nil.

    satellitePort

    Int? object, custom port for satellite configuration. Default is nil. IMPORTANT! Use only with .sandbox environment! Hostname should be specified for valid http://localhost or in local IP format http://192.168.X.X.

  • Initialization.

    Declaration

    Swift

    public convenience init(id: String, environment: Environment = .sandbox, dataRegion: String? = nil, hostname: String? = nil, satellitePort: Int? = nil)

    Parameters

    id

    String object, your organization vault id.

    environment

    Environment object, your organization vault environment. By default Environment.sandbox.

    dataRegion

    String object, id of data storage region (e.g. “eu-123”).

    hostname

    String object, custom Hostname, if not set, data will be sent to Vault Url. Default is nil.

    satellitePort

    Int? object, custom port for satellite configuration. Default is nil. IMPORTANT! Use only with .sandbox environment! Hostname should be specified for valid http://localhost or in local IP format http://192.168.X.X.

Manage VGSTextFields

Manage Files

Send data

VGSCollect + async

VGSCollect + Combine