ami_client library

AMI Flutter - Legacy API

This is the original API preserved for backward compatibility. For new projects, use ami_flutter_clean.dart for Clean Architecture.

Classes

BaseManager
BaseMessage
DefaultManager
Event
KeepAliveConfig
Keep-alive configuration for Ping/Pong.
ReconnectionConfig
Configuration for connection retry behavior.
Response
WebSocketManager

Enums

ConnectionState
Connection state for AMI connections.
HandleStatus
MessageType

Mixins

BaseActions
Connector
Mixin for managing network connections to the AMI server.
Dispatcher
Dispatcher mixin that manages event and response routing to registered listeners.
EnhancedActions
Enhanced actions with modern AMI features.
LifeCycle
Lifecycle management mixin for AMI components.
Manager
AMI Manager mixin that handles connection lifecycle and greeting messages.
Parser
Mixin for parsing raw network messages into AMI protocol structures.
Reader
Mixin for receiving and processing AMI protocol messages.
Sender
Mixin that combines connection and dispatching capabilities for sending actions.
SocketMessageParser
Parser for TCP socket messages that handles incremental data chunks.
TCPSocketConnector
TCP socket connector with automatic reconnection support.
WebSocketConnector
WebSocketMessageParser
Parser for WebSocket AMI messages in JSON format.

Constants

eol → const String

Functions

selectByPlatform<T extends BaseManager>(bool isWeb) → T
Selects the appropriate AMI manager based on the platform.

Typedefs

EventPredicate = bool Function(Event event)
Type alias for event filtering predicates.