GapAdvertisingType

public enum GapAdvertisingType : UInt8
extension GapAdvertisingType: Encodable

Generic Access Profile Advertising Type

  • Connectable undirected advertising

    Declaration

    Swift

    case connectableUndirected = 0
  • Connectable directed

    Declaration

    Swift

    case connectableDirected = 1
  • Scannable undirected

    Declaration

    Swift

    case scannableUndirected = 2
  • Non Connectable undirected

    Declaration

    Swift

    case nonConnectableUndirected = 3
  • Scan Response

    Declaration

    Swift

    case scanResponse = 4
  • Undocumented

    Declaration

    Swift

    case unknown = 255
  • Undocumented

    Declaration

    Swift

    public var description: String { get }
  • Encodes this value into the given encoder.

    If the value fails to encode anything, encoder will encode an empty keyed container in its place.

    This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.