Catapush class
Constructors
- Catapush()
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
-
allMessages(
) → Future< List< CatapushMessage> > - Lists all messages received by the currently logged user.
-
disableNotifications(
) → Future< void> -
Android only
Disable notifications, this status will be persisted across Catapush starts -
enableLog(
bool enabled) → Future< bool> - Enables or disables the SDK logging.
-
enableNotifications(
) → Future< void> -
Android only
Enable notifications, this status will be persisted across Catapush starts -
getAttachmentUrlForMessage(
CatapushMessage message) → Future< CatapushFile> - Obtains the file attached to the message.
-
init(
{iOSSettings? ios, AndroidSettings? android}) → Future< bool> -
Initializes the native Catapush SDK.
Wait for the Future to complete before invoking any other method of this plugin. -
logout(
) → Future< bool> - Disconnects the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pauseNotifications(
) → Future< void> -
Android only
Pause notifications until next Catapush start or until Catapush.resumeNotifications() -
resumeNotifications(
) → Future< void> -
Android only
Resume notifications until next Catapush start or until Catapush.pauseNotifications() -
sendMessage(
CatapushSendMessage message) → Future< bool> - Sends a message to the Catapush backend for delivery.
-
sendMessageReadNotificationWithId(
String id) → Future< bool> - Confirms that a message has been read by the user.
-
setCatapushMessageDelegate(
CatapushMessageDelegate delegate) → void - Sets the delegate that will be informed of all messaging events of the native SDK.
-
setCatapushStateDelegate(
CatapushStateDelegate delegate) → void - Sets the delegate that will be informed of all state change events of the native SDK.
-
setUser(
String identifier, String password) → Future< bool> -
Sets the user credentials.
Provide the identifier and password that you have created with the Catapush dashboard or with the Catapush APIs.
You have to invoke this method at least once before starting the SDK. -
start(
) → Future< bool> - Starts the Catapush native SDK.
-
stop(
) → Future< bool> - Stops the Catapush native SDK.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
getter/setter pair