MesiboUI class

Inheritance

Constructors

MesiboUI()

Properties

hashCode → int
The hash code for this object.
no setterinherited
pigeonVar_binaryMessenger → BinaryMessenger?
finalinherited
pigeonVar_messageChannelSuffix → String
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

applyCustomization() → Future<void>
Applies the current theme: a new configuration with its defaults, its saved customization, then the settings set with setConfig / applyJson. Nothing is done when that theme is already applied and no customization was saved for it since.
override
applyJson(String json) → Future<List<String>>
Applies the settings in a JSON (only the settings in it change); the problems found. Kept, as with setConfig. For a look of the light or dark theme, use saveCustomization instead.
applyUiConfig(String json) → Future<List<String>>
inherited
call(MesiboProfileFlutter profile, bool video) → Future<void>
inherited
closeAllScreens() → Future<void>
inherited
getConfig() → Future<MesiboUiConfig>
The settings of the messaging UI now: change them and apply them with setConfig.
getCustomization(bool dark) → Future<String?>
The customization saved for the dark or the light theme; null if none.
override
getUiConfig(bool onlyChanged) → Future<String>
inherited
groupCall(MesiboProfileFlutter profile, bool video, bool audio, bool videoMute, bool audioMute) → Future<void>
inherited
launchCreateGroup() → Future<void>
inherited
launchCustomize([void onCustomized(String json, bool dark)?]) → void
The look of the messaging UI for the current theme (light or dark), in three tabs with previews: Theme, Chat list and Chat. Nothing changes until Apply; Back with changes asks whether to discard them. On Apply (and Reset), the look is saved for that theme and used at once; onCustomized, if given, is told after, with what was changed as JSON (empty after Reset) and whether it is the dark theme's.
launchCustomizeDefault() → Future<void>
inherited
launchDisappearingMessages(MesiboProfileFlutter profile) → Future<void>
inherited
launchEditGroup(int groupId) → Future<void>
inherited
launchEditProfile(bool newUser, MesiboEditProfileListener? listener) → void
The user's own profile: name, status and picture. newUser: the "profile info" step after the first sign in (the name is required and there is no way back). The listener is told when the user saved it, after the screen closed.
launchEditProfileDefault(bool newUser) → Future<void>
inherited
launchForwardMessages(List<int> messageIds, bool forwardAndClose) → Future<void>
inherited
launchForwardText(String message, bool forwardAndClose) → Future<void>
inherited
launchMessaging(MesiboProfileFlutter profile) → Future<void>
inherited
launchUserList({bool keepRunning = false}) → void
The chat list. keepRunning: it is the app's main screen; on Android, back sends the app to the background instead of closing the chat list (on iOS it has no back button anyway).
launchUserListDefault(bool keepRunning) → Future<void>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveCustomization(String json, bool dark) → Future<void>
Saves a customization (JSON, e.g. from your server) for the dark or the light theme; empty: deletes it. It only saves: it is used the next time that theme is applied (applyCustomization, setTheme, a light / dark switch).
override
setCallUiDefaults(MesiboCallUiPropertiesFlutter properties) → Future<void>
inherited
setConfig(MesiboUiConfig config) → Future<List<String>>
Applies the settings changed in config (read with getConfig); the problems found, for example an unknown setting or a wrong type (the other settings are applied anyway). They are kept: each time a theme is applied, the configuration is made new (the theme's defaults, then its saved customization) and these settings are applied on it again.
setGroupCallUiDefaults(MesiboGroupCallUiPropertiesFlutter properties) → Future<void>
inherited
setMenu(List<MesiboUIMenuItem> items, MesiboUIMenuListener listener) → void
The menu items and title bar buttons of the chat list and of chats, in order, for example MesiboUI.defaultMenu() with your own items. A tap goes to the listener with the profile of the chat (null on the chat list). Set it once, before showing the screens.
setMenuDefault(List<MesiboUIMenuItemFlutter> items) → Future<void>
inherited
setTheme(int theme) → Future<void>
inherited
setupBasicCustomization(MesiboUIButtons buttons, MesiboUIBasicCustomizationListener? listener) → void
Adds voice and video call buttons to chats (and an encryption item to the chat menu when buttons.endToEndEncryptionInfo is set). With a listener, the clicks go to it; without one, mesibo starts the call. setMenu replaces it, with more control.
setupBasicCustomizationDefault(MesiboUIButtonsFlutter buttons) → Future<void>
inherited
showBasicProfileInfo(MesiboProfileFlutter profile) → Future<void>
The profile screen of a user or group. Renamed: use showProfile.
showEndToEndEncryptionConfiguration() → Future<void>
inherited
showEndToEndEncryptionInfo(MesiboProfileFlutter? profile) → Future<void>
inherited
showProfile(MesiboProfileFlutter profile) → Future<void>
inherited
showProfilePopup(MesiboProfileFlutter profile) → Future<void>
inherited
toJson({bool onlyChanged = false}) → Future<String>
The settings as JSON, the same on Android and iOS: every setting, or only the changed ones.
toString() → String
A string representation of this object.
inherited
updateScreens() → Future<void>
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

defaultMenu() → List<MesiboUIMenuItem>
The menu of the messaging UI by default: video and voice call buttons in chats (group calls in groups). Add your own items to it, or leave out what you do not need.

Constants

ATTACH_BUTTON_CLIP → const int
ATTACH_BUTTON_PLUS → const int
CHATFILTER_ALL → const int
CHATFILTER_FAVORITES → const int
CHATFILTER_GROUPS → const int
CHATFILTER_ONLINE → const int
CHATFILTER_UNREAD → const int
ICON_ADD → const String
ICON_CHAT → const String
ICON_GROUP → const String
ICON_INFO → const String
ICON_LOCK → const String
ICON_LOGOUT → const String
ICON_PERSON → const String
ICON_PHONE → const String
ICON_SETTINGS → const String
ICON_SHARE → const String
ICON_STAR → const String
ICON_VIDEO → const String
SCREEN_MESSAGES → const int
SCREEN_PROFILE → const int
SCREEN_PROFILE_POPUP → const int
SCREEN_USERLIST → const int
SEARCH_BUTTON → const int
SEARCH_NONE → const int
SEARCH_SYSTEM → const int
SEARCH_TOP → const int
SHOW_ALL → const int
SHOW_GROUPS → const int
SHOW_USERS → const int
TEXTSIZE_EXTRALARGE → const int
TEXTSIZE_LARGE → const int
TEXTSIZE_MEDIUM → const int
TEXTSIZE_SMALL → const int
THEME_DARK → const int
THEME_LIGHT → const int
THEME_SYSTEM → const int
TIMERSTART_DELIVERED → const int
TIMERSTART_READ → const int
TIMERSTART_SENT → const int