noq

Last updated:

0 purchases

noq Image
noq Images
Add to Cart

Description:

noq

NoQ Flutter SDK #
Usage #
initialize noq object #
final noq = NoQ(
clientID: "<your client ID>",
)
copied to clipboard
enquene #
final result = await noq.enqueue();
switch (result) {
case EnqueueResultWait():
if (!context.mounted) return;
final token = await Navigator.push(
context,
MaterialPageRoute(
builder: (context) => WaitingRoomScreen(
waitingRoomURL: result.url,
canBack: false, // configure the back behavior
),
),
);
if (token != null) {
// queuing complete
} else {
// queuing cancelled (e.g. user swiped back)
}
break;
default:
break;
}
copied to clipboard
check expiry time #
final time = await noq.getExpiryTime();
print(time);
copied to clipboard
extends session #
The duration of the ticket can be extended by utilizing extendSession method on noq object. The parameter is in minutes
final result = await noq.extendSession(60);
print(result);
copied to clipboard
delete session #
The duration of the ticket can be extended by utilizing extendSession method on noq object. The parameter is in minutes
await noq.deleteSession();
copied to clipboard
Change language #
The language of the waiting room can be changed.
noq.language = Language.zhHant;
copied to clipboard
enum Language {
en,
zhHant,
zhHans,
fr,
de,
it,
ja,
es,
ko,
pt,
}
copied to clipboard
Error #

NoTokenException - if token is not exist, method may throw this error. In order to obtain a token, use enqueue
TokenExpiredException - when calling extends session, the token maybe expired already, then this exception will be thrown.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.