SendbirdUIKit class

SendbirdUIKit

Constructors

SendbirdUIKit()
factory

Properties

chooseDocument → Future<FileInfo?> Function()?
no setter
chooseFiles → Future<List<FileInfo>> Function()?
no setter
chooseMedia → Future<FileInfo?> Function()?
no setter
choosePhoto → Future<FileInfo?> Function()?
no setter
customParamsHandler → SBUCustomParamsHandler?
The SBUCustomParamsHandler set via setCustomParamsHandler, if any.
no setter
downloadFile → Future<void> Function(String fileUrl, String? fileName, void downloadCompleted())?
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
takePhoto → Future<FileInfo?> Function()?
no setter
takeVideo → Future<FileInfo?> Function()?
no setter

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

connect(String userId, {String? nickname, String? accessToken, String? apiHost, String? wsHost}) → Future<bool>
Connects to SendbirdUIKit with given userId.
disconnect() → Future<bool>
Disconnects from SendbirdUIKit.
getGroupChannelCollection(int channelCollectionNo) → GroupChannelCollection?
Gets GroupChannelCollection with channelCollectionNo. Refers to SBUGroupChannelListScreen.onGroupChannelCollectionReady.
getMessageCollection(int messageCollectionNo) → MessageCollection?
Gets MessageCollection with messageCollectionNo. Refers to SBUGroupChannelScreen.onMessageCollectionReady.
init({required String appId, SendbirdChatOptions? options, SBUTheme? theme, GlobalKey<NavigatorState>? navigatorKey, bool addCloseButtonInDelayedConnectingDialog = false, Future<FileInfo?> takePhoto()?, Future<FileInfo?> takeVideo()?, Future<FileInfo?> choosePhoto()?, Future<FileInfo?> chooseMedia()?, Future<FileInfo?> chooseDocument()?, Future<List<FileInfo>> chooseFiles()?, Future<void> downloadFile(String fileUrl, String? fileName, void downloadCompleted())?, bool useReaction = true, bool useOGTag = true, SBUReplyType replyType = SBUReplyType.quoteReply, bool? useMarkAsUnread, bool? useChannelListTypingIndicator, bool? useChannelTypingIndicator, SBUTypingIndicatorType? channelTypingIndicatorType}) → Future<bool>
Initializes SendbirdUIKit with given appId.
isInitialized() → bool
Checks if SendbirdUIKit is initialized.
provider({required Widget child, bool enableTapToUnfocus = true}) → Widget
Applies the providers for SendbirdUIKit.
setCustomParamsHandler(SBUCustomParamsHandler? handler) → void
Sets the SBUCustomParamsHandler used to customize message params before they are sent or updated.
setFontFamily(String fontFamily) → void
Sets fontFamily.

Constants

version → const String
UIKit version