Skip to main content

API Overview (Android)

CrowdGlowView

new CrowdGlowView(
context,
hideUICallback,
showUICallback,
apiKey,
allowedTransmitterIds
)

Constructor:

CrowdGlowView(
Context context,
Runnable hideUICallback,
Runnable showUICallback,
String apiKey,
String[] allowedTransmitterIds
)

Parameters:

  • context: Host activity context.
  • hideUICallback: Called when light-show mode starts.
  • showUICallback: Called when light-show mode stops.
  • apiKey: CrowdGlow API key.
  • allowedTransmitterIds: Optional allowlist.

CrowdGlowStatusView

Constructors:

CrowdGlowStatusView(
Context context,
String statusTextColour,
String statusTextFontName,
float statusTextFontSize,
int statusTextAlignment,
String actionButtonColour,
String actionButtonTitleColour,
String actionButtonTitleFontName,
float actionButtonTitleFontSize,
int actionButtonHeight
)

CrowdGlowStatusView(
Context context,
String statusTextColour,
String statusTextFontName,
float statusTextFontSize,
int statusTextAlignment,
String actionButtonColour,
String actionButtonTitleColour,
String actionButtonTitleFontName,
float actionButtonTitleFontSize,
int actionButtonHeight,
int defaultVenueId
)

Parameters:

  • statusTextColour: Hex color string (for example #FFFFFF).
  • statusTextFontName: Typeface family name (for example sans-serif).
  • statusTextFontSize: Status text size (sp-like sizing passed as float).
  • statusTextAlignment: Android gravity/alignment value.
  • actionButtonColour: Hex color for action button background.
  • actionButtonTitleColour: Hex color for action button text.
  • actionButtonTitleFontName: Typeface family for action button.
  • actionButtonTitleFontSize: Action button text size.
  • actionButtonHeight: Action button height (px).
  • defaultVenueId: Optional fallback venue before first CrowdNet signal.