AppstorysFlutterPlatform class abstract
This is the abstract contract — defines what methods must exist without implementing them. Extends PlatformInterface — Flutter's standard pattern for plugins that need to support multiple platforms (Android, iOS, web)
- Inheritance
-
- Object
- PlatformInterface
- AppstorysFlutterPlatform
- Implementers
Constructors
- AppstorysFlutterPlatform()
- Constructs a AppstorysFlutterPlatform.
Properties
-
campaignsStream
→ Stream<
String> -
A stream that emits a campaigns JSON string whenever AppStorysCore's
internal StateFlow updates. The first emission replays the current value
immediately (StateFlow semantics), so subscribers always get data even
if getScreenCampaigns() was called before subscribing.
Emits '[]' when no campaigns are loaded. Never emits null.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
captureCsatResponse(
{required String csatId, required String userId, required double rating, String? feedbackOption, String? additionalComments}) → Future< void> -
captureSurveyResponse(
{required String surveyId, required String userId, required List< String> responseOptions, String? comment}) → Future<void> -
dismissCampaign(
String campaignId) → Future< void> -
getCampaignsByTypeJson(
String type) → Future< String> -
getCampaignsJson(
) → Future< String> -
getPersonalizationDataJson(
) → Future< String> -
getScreenCampaigns(
{required String screenName, List< String> positionList = const <String>[]}) → Future<void> -
getUserId(
) → Future< String?> -
identifyElements(
{required String screenName, required Uint8List screenshot, required String childrenJson}) → Future< void> -
initialize(
{required String appId, required String accountId, String? userId}) → Future< void> -
isReady(
) → Future< bool> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
personalizeText(
String text) → Future< String> -
sendReelLikeStatus(
{required String campaignId, required String userId, required bool isLiked}) → Future< void> -
setUserId(
{required String userId}) → Future< void> -
setUserProperties(
{required Map< String, Object?> attributes}) → Future<void> -
toString(
) → String -
A string representation of this object.
inherited
-
trackEvent(
{required String event, String? campaignId, Map< String, Object?> ? metadata}) → Future<void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ AppstorysFlutterPlatform
-
The default instance of AppstorysFlutterPlatform to use.
Defaults to MethodChannelAppstorysFlutter.
Getter — returns current active platform implementation
getter/setter pair