google_api_proximity_beacon v0.7.0 GoogleApi.ProximityBeacon.V1beta1.Model.AttachmentInfo View Source

A subset of attachment information served via the beaconinfo.getforobserved method, used when your users encounter your beacons.

Attributes

  • data (type: String.t, default: nil) - An opaque data container for client-provided data.

  • maxDistanceMeters (type: float(), default: nil) - The distance away from the beacon at which this attachment should be delivered to a mobile app.

    Setting this to a value greater than zero indicates that the app should behave as if the beacon is "seen" when the mobile device is less than this distance away from the beacon.

    Different attachments on the same beacon can have different max distances.

    Note that even though this value is expressed with fractional meter precision, real-world behavior is likley to be much less precise than one meter, due to the nature of current Bluetooth radio technology.

    Optional. When not set or zero, the attachment should be delivered at the beacon's outer limit of detection.

  • namespacedType (type: String.t, default: nil) - Specifies what kind of attachment this is. Tells a client how to interpret the data field. Format is namespace/type, for example scrupulous-wombat-12345/welcome-message

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.ProximityBeacon.V1beta1.Model.AttachmentInfo{
  data: String.t(),
  maxDistanceMeters: float(),
  namespacedType: String.t()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.