Skip to main content

Aila_OverrideLightTimeout

Override the lighting to remain active for a number of seconds.

Signature

void Aila_OverrideLightTimeout(int duration);

Parameters

  • duration - Number of seconds to keep lights active, or 0 to clear timeout

Description

Sets the lighting to remain active for a defined number of seconds when Aila_EnableSpeaker() is enabled. Otherwise, the kiosk lighting will be disabled by default at 10 seconds.

The beep/flash cycle that normally occurs after a scan event will not occur during this timeout period.

To clear the timeout before it expires, pass 0 to Aila_OverrideLightTimeout().

Supported Hardware

This feature is only available for the Interactive Kiosk 10.2 Gen 7/8/9.

Usage

// Enable speaker for audio playback
Aila_EnableSpeaker();

// Keep lights on for 30 seconds during audio
Aila_OverrideLightTimeout(30);

// Play audio...
[self.audioPlayer play];

// After audio is done
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 30 * NSEC_PER_SEC),
dispatch_get_main_queue(), ^{
// Clear override
Aila_OverrideLightTimeout(0);
// Disable speaker
Aila_DisableSpeaker();
});

See Also