stream_feed_flutter_core library

Classes

ActivitiesManager<A, Ob, T, Or>
Class to manage activities.
Activity
In its simplest form, an activity consists of an actor, a verb, an object, and a target.
ActivityMarker
Convenient class to mark feed as seen / read
ActivityUpdate
For updating only parts of one or more activities by changing, adding, or removing fields.
AggregatedFeed
Aggregated feeds are helpful for grouping activities.
Attachment
An Attachment model to convert a MediaUri TO a Map to send as an extraData along an activity or a reaction. For example:
AttachmentFile
Contains information about an attachment file.
CollectionEntry
Collections enable you to store information to Stream.
Content
Represents custom data related to the content you want to track using Stream Analytics.
Crop
Crops an image based on supplied _width,_height and eventually types
Engagement
A type of event that contains details about a user's interactions with an Activity.
EnrichmentFlags
Flags to indicate the API to enrich activities with additional info like user reactions and count
FeedBloc
FeedId
A feed identifier based on slug and userId.
FeedProvider
FileStorageClient
This API endpoint allows the uploading of files to, and deleting files from, a Stream-provided CDN.
FileUploadState
FileUploadStateIcon
FileUploadStateWidget
A convenience widget to easily display the state of a file upload.
Filter
Note: passing both id_lteandid_gte is not supported.
FlatFeed
Flat is the default feed type - and the only feed type that you can follow.
FlatFeedCore
A simplified class that allows fetching a list of enriched activities (flat) while exposing UI builders.
Follow
Model for the follower of a feed
Followers
Followers of a feed used as a field in FollowStats
Following
Following of a feed used in FollowStats as field
FollowStats
Following stats for a feed
ForeignIdTimePair
A model that wraps foreignID and time
GenericEnrichedActivity<A, Ob, T, Or>
Enrichment is a concept in Stream that enables our API to work quickly and efficiently.
GenericFeedBloc<A, Ob, T, Or>
The generic version of FeedBloc.
GenericFeedProvider<A, Ob, T, Or>
The generic version of FeedProvider
GenericFlatFeedCore<A, Ob, T, Or>
GenericFlatFeedCore is a simplified class that allows fetching a list of enriched activities (flat) while exposing UI builders.
GenericReactionListCore<A, Ob, T, Or>
The generic version of ReactionListCore
Group<T>
An aggregated group type.
GroupedActivitiesManager<A, Ob, T, Or>
Class to manage activities.
ImagePreview
ImageStorageClient
Image and files have separate clients (e.g. images can be resized, whereas files cannot).
Impression
A type of event that contains details about activities a user has viewed.
Level
Levels to control logging output. Logging can be enabled to include all levels above certain Level. Levels are ordered using an integer value Level.value. The predefined Level constants below are sorted as follows (in descending order): Level.SHOUT, Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST, and Level.ALL.
Logger
Use a Logger to log debug messages.
MediaUri
Defines a piece of media present in a feed.
NextParams
NotificationFeedMeta
NotificationGroup<T>
A notification group.
OgAudio
OG Audio object
OgImage
OG Image object
OgVideo
OG Video object
OpenGraphData
Open graph data from a website.
PaginatedActivities<A, Ob, T, Or>
Paginated activities feed
PaginatedActivitiesGroup<A, Ob, T, Or>
Paginated activities group feed
PaginatedReactions<A, Ob, T, Or>
Paginated Reaction
Reaction
Reactions are a special kind of data that can be used to capture user interaction with specific activities.
ReactionListCore
ReactionsClient
Provides methods for reacting to Activities.
ReactionsManager
Class to manage reactions.
RealtimeMessage<A, Ob, T, Or>
A realtime message for changes to one or many feeds.
Resize
Resize an image based on supplied _width,_height and eventually _type
StreamAnalytics
Sends out analytic events to the Stream service. We recommend tracking every event for each user. This allows you to gain a better understanding of that user's interests. Common examples include:
StreamFeedClient
The client class that manages API calls and authentication.
StreamHttpClientOptions
Client options to modify StreamHttpClient
StreamUser
Stream allows you to store user information and embed them inside activities or use them for personalization.
Subscription
Thumbnail
Create a Thumbnail of an image based on supplied _width,_height and eventually cropTypes and resizeType
Token
The JWT auth token for a specific feed.
UploadCancelled
UploadController
The upload controller manages all logic with the upload state of attachments. Such as:
UploadEmptyState
UploadFailed
UploadFailedWidget
UploadListCore
A widget to easily display and manage uploads and their current state.
UploadProgress
UploadProgressWidget
UploadState
UploadSuccess
UploadSuccessWidget
User
Stream allows you to store user information and embed them inside activities or use them for personalization.
UserData
Data about a user

Enums

CropType
The type of crop
FeedsError
Enumerates the list of errors that are returned by the API.
Location
Location of the cluster closest to your user.
LookupAttribute
Lookup objects based on attributes
MediaType
Enumerates the types of supported media in Feeds.
ResizeType
The type of resize
Runner
Different sides on which you can run this StreamFeedClient on
ShiftType
StateIconPosition

Extensions

CropX on CropType
Extensions for CropType.
EnrichedActivityX on List<GenericEnrichedActivity<A, Ob, T, Or>>
ExtraDataX on Map<String, Object?>
FeedContext on BuildContext
Convenient extensions on build context to access common Stream Feed components.
FeedsErrorCodeX on FeedsError
Extensions on FeedsError.
LocationX on Location
Convenient class Extension to on Location enum
LookupAttributeX on LookupAttribute
Convenient class Extension on LookupAttribute enum
MapUpsert on Map<K, V>
MapX on Map<K?, V?>
Useful extension functions for Map
MediaConvertX on List<MediaUri>
MediaTypeName on MediaType
MediaTypeString on String
ReactionX on List<Reaction>
ResizeX on ResizeType
Extensions for ResizeType.
StringX on String
Useful extension functions for String
Unshift on List<T>
UnshiftInt on int
UnshiftMapController on Map<String, BehaviorSubject<List<Reaction>>>?
UnshiftMapInt on Map<String, int>?
UnshiftMapList on Map<String, List<Reaction>>?
UpdateIn on List<GenericEnrichedActivity<A, Ob, T, Or>>
UpdateInReaction on List<Reaction>

Functions

checkArgument(bool expression, [String? message]) → void
Throws an ArgumentError if the given expression is false.
checkNotNull<T>(T reference, [String? message]) → T
Throws an ArgumentError if the given reference is null. Otherwise, returns the reference parameter.
createActivityReference(String id) String
Returns a new collection reference string in the form SA:
createCollectionReference(String? collection, String? id) String
Returns a new collection reference string in the form SO:
createReactionReference(String id) String
Returns a new reaction reference string in the form SR:
createUserReference(String id) String
Returns a new user reference string in the form SU:
feedsErrorCodeFromCode(int code) FeedsError?
parseNext(String next) NextParams

Typedefs

EnrichedActivity = GenericEnrichedActivity<User, String, String, String>
Convenient typedef for GenericEnrichedActivity with default parameters ready to use and suitable for most use cases
OnReceiveProgress = void Function(int receivedBytes, int totalBytes)
OnSendProgress = void Function(int sentBytes, int totalBytes)

Exceptions / Errors

StreamApiException
Exception related to api calls
StreamFeedsError
A custom Exception for printing Stream Feeds specific errors.
StreamFeedsNetworkError
A custom Exception for printing http-related Stream Feeds errors.