MyAppCrewFlutter class
MyAppCrew SDK entry point.
Constructors
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 Properties
- debugLoggingEnabled → bool
-
no setter
- isEnabled → bool
-
Whether the SDK is enabled (publicKey present + bootstrap success).
no setter
- isInitialized → bool
-
Whether initialize has completed (even if disabled).
no setter
Static Methods
-
connectFromText(
String input, {String? publicKeyOverride}) → Future< MyAppCrewConnectResult> - Connect using text that may include a claim token or URL.
-
connectTester(
String code) → Future< MyAppCrewConnectResult> - Connect using a 6-digit code.
-
connectWithClaimToken(
String claimToken) → Future< MyAppCrewConnectResult> - Connect using a claim token.
-
debugSnapshot(
) → Map< String, dynamic> -
disconnectTester(
) → Future< void> - Clears the connected tester identity and stored auth.
-
flushNow(
) → Future< void> - Flush queued events now.
-
getConnectedTester(
) → MyAppCrewTester? - Returns the currently connected tester identity (without token).
-
getDebugSnapshot(
) → DebugSnapshot - Returns a safe snapshot of SDK state for debugging.
-
init(
{String? publicKey, String? baseUrl, bool? enableLogs}) → Future< void> - Initialize the SDK.
-
isTesterConnected(
) → bool - Whether a non-anonymous tester identity is connected.
-
logEvent(
String name, {Map< String, dynamic> ? params}) → void - Log an event. Safe to call before init.
- Navigator observer for auto screen tracking.
-
resetForTesting(
) → void -
setClientForTesting(
MyAppCrewClient client) → void -
setDebugLogging(
bool enabled) → void - Enable or disable SDK debug logging.
-
setOnTesterIdentityInvalid(
void handler(String reason)?) → void - Set a callback for invalid/revoked tester identities.
-
showConnectSheet(
BuildContext context, {bool showAsBottomSheet = true, String title = 'Connect tester', String subtitle = 'Enter the 6-digit Connect Code from your invite.', bool allowDismiss = true}) → Future< void>