Skip to main content

API Overview (iOS)

CrowdGlowView

CrowdGlowView(
onLightShowStarted: (() -> Void)? = nil,
onLightShowStopped: (() -> Void)? = nil,
apiKey: String,
allowedTransmitterIds: [String] = []
)

Parameters:

  • onLightShowStarted: Called when SDK enters light-show mode.
  • onLightShowStopped: Called when SDK exits light-show mode.
  • apiKey: CrowdGlow API key.
  • allowedTransmitterIds: Optional allowlist of transmitter IDs.

CrowdGlowStatusView

CrowdGlowStatusView(
statusTextColour: UIColor,
statusTextFontName: String,
statusTextFontSize: CGFloat,
statusTextAlignment: NSTextAlignment,
actionButtonColour: UIColor,
actionButtonTitleColour: UIColor,
actionButtonTitleFontName: String,
actionButtonTitleFontSize: CGFloat,
actionButtonHeight: CGFloat,
defaultVenueId: Int = 0
)

Parameters:

  • statusTextColour: Color for status labels/sub-labels.
  • statusTextFontName: Font family for status text.
  • statusTextFontSize: Status text size.
  • statusTextAlignment: Alignment (.left, .center, .right, etc).
  • actionButtonColour: Primary action button background color.
  • actionButtonTitleColour: Primary action button text color.
  • actionButtonTitleFontName: Font family for action button text.
  • actionButtonTitleFontSize: Action button text size.
  • actionButtonHeight: Action button height in points.
  • defaultVenueId: Optional fallback venue before first CrowdNet signal.