HackleApp class
Entry point for the Hackle SDK.
This class provides static methods to initialize the Hackle SDK and access various features such as experiments, feature flags, and more.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
featureFlagDetail(
int featureKey, {HackleUser? user}) → Future< FeatureFlagDecision> - Checks whether a feature flag is enabled.
-
fetch(
) → Future< void> - Fetch the hackle dashboard info
-
getDeviceId(
) → Future< String> - Retrieves the current device ID.
-
getRemoteConfig(
{HackleUser? user}) → RemoteConfig - Retrieves the remote configuration.
-
getSessionId(
) → Future< String> - Retrieves the current session ID.
-
getUser(
) → Future< HackleUser> - Retrieves the current user.
-
getWebBridgeScript(
) → String - JS Bridge Script for Hackle SDK
-
handleWebInterfaceCommand(
String? jsMessage) → Future< String> - Execute Hackle command through the WebView interface
-
hideUserExplorer(
) → Future< void> - Hides the User Explorer.
-
initialize(
String sdkKey, {HackleConfig? hackleConfig, HackleUser? user}) → Future< void> - Initializes the Hackle SDK.
-
isFeatureOn(
int featureKey, {HackleUser? user}) → Future< bool> - Checks whether a feature flag is enabled.
-
isInvocableCommandInWebView(
String? message) → Future< bool> - Checks whether a command is executable in a WebView.
-
resetUser(
) → Future< void> - Resets the user.
-
setBackButtonDismissesInAppMessageView(
bool isDismisses) → Future< void> -
Android Only
Sets whether the back button should dismiss the in-app message view. -
setCurrentScreen(
Screen screen) → Future< void> - Set current screen
-
setDeviceId(
String deviceId) → Future< void> - Set Device Id
-
setPhoneNumber(
String phoneNumber) → Future< void> - Set user's phone number
-
setUser(
HackleUser user) → Future< void> - Set HackleUser
-
setUserId(
String? userId) → Future< void> - Set User Id
-
setUserProperty(
String key, Object value) → Future< void> - Sets a user property with the given key and value.
-
showUserExplorer(
) → Future< void> - Displays the User Explorer.
-
track(
HackleEvent event, {HackleUser? user}) → Future< void> - Sends a specified event to the server.
-
unsetPhoneNumber(
) → Future< void> - Unset user's phone number'
-
updateKakaoSubscriptions(
HackleSubscriptionOperations operations) → Future< void> - Updates the kakao message subscription settings for the user.
-
updatePushSubscriptions(
HackleSubscriptionOperations operations) → Future< void> - Updates the push notification subscription settings for the user.
-
updateSmsSubscriptions(
HackleSubscriptionOperations operations) → Future< void> - Updates the Sms subscription settings for the user.
-
updateUserProperties(
PropertyOperations operations) → Future< void> - Sets a user property with the given properties
-
variation(
int experimentKey, {HackleUser? user}) → Future< Variation> - Returns the variation for an experiment.
-
variationDetail(
int experimentKey, {HackleUser? user}) → Future< Decision> - Returns detailed information about the variation of an experiment.