BabylaiFlutterPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- BabylaiFlutterPlatform
- Implementers
Constructors
- BabylaiFlutterPlatform()
- Constructs a BabylaiFlutterPlatform.
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
-
getLocale(
) → Future< BabylAILocale> - Get current locale
-
getPlatformVersion(
) → Future< String?> -
initialize(
{required EnvironmentConfig environmentConfig, required BabylAILocale locale, Map< String, dynamic> userInfo = const {}, ThemeConfig? themeConfig}) → Future<void> - Initialize BabylAI SDK
-
launchActiveChat(
{required String screenId, required BabylAITheme theme}) → Future< void> - Launch active chat directly
-
launchChat(
{required String screenId, required BabylAITheme theme}) → Future< void> - Launch BabylAI chat
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → Future< void> - Reset SDK
-
setTokenCallback(
) → Future< void> - Set token callback
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLocale(
BabylAILocale locale) → Future< void> - Update locale
-
updateTheme(
BabylAITheme theme) → Future< void> - Update theme
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ BabylaiFlutterPlatform
-
The default instance of BabylaiFlutterPlatform to use.
getter/setter pair