BitLabs class
The main class including all the library functions to use in your code.
This is a singleton object, so you'll have one instance throughout the whole main process(app lifecycle).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addTag(
String key, dynamic value) → Future< void> -
Adds a new (
key
,value
) pair totags
-
checkSurveys(
void onResponse(bool), void onFailure(Exception)) → void - Determines whether the user has surveys available.
-
getLeaderboard(
void onResponse(GetLeaderboardResponse)) → void -
getSurveys(
void onResponse(List< Survey> ), void onFailure(Exception)) → void - Fetches a list of surveys the user can open.
-
getSurveyWidgets(
List< Survey> surveys, WidgetType type) → List<SurveyWidget> -
init(
String token, String uid) → void - Initialises BitLabs so that it's ready to use.
-
launchOfferWall(
BuildContext context) → void -
Launches the OfferWall from the
context
you pass. -
leaveSurvey(
String clickId, String reason) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestTrackingAuthorization(
) → void - FOR IOS ONLY. Prompts the user to give Authorization for Tracking.
-
setOnReward(
void onReward(double)) → void - Registers a reward callback to be invoked when the OfferWall is exited by the user.
-
setTags(
Map< String, dynamic> tags) → void - These will be added as query parameters to the OfferWall Link.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited