PTClient class

Inheritance

Constructors

PTClient(String address, String _applicationDirectory, {int port = PowerTip.defaultPort})
PTClient.copyOf(User user, String address, String applicationDirectory)
factory

Properties

address String
The address in IPv4 format that points to the remote host address
finalinherited
didHandshake bool
Indicates whether a handshake is complete or not.
no setter
hashCode int
The hash code for this object.
no setterinherited
id int
finalinherited
isConnected bool
An indicator that checks whether this instance is currently connected or not.
no setter
isOrphan bool
Indicates whether the client is orphan or not.
no setter
name String
getter/setter pairinherited
port int
The port number to be used when connected to the remote host.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scope String
no setter
slides List<Slide>
getter/setter pairinherited
type UserType
getter/setter pairinherited

Methods

connect() Future<ErrorCode>
Connects to a remote host
disconnect({ErrorCode? code}) Future<void>
Disconnects from the remote host
listen({OnDownloadStartedCallback? onDownloadStarted, OnDownloadCompleteCallback? onDownloadComplete, OnDownloadProgressCallback? onDownloadProgress, OnClientDisconnectedCallback? onUserLeft, OnClientChangedAttributesCallback? onUserChanged, OnSetPageCallback? onSetPage, OnDocumentChangedCallback? onDocumentChanged, OnPointerLocationChangedCallback? onPointerLocationChanged, OnSessionEndedCallback? onSessionEnded, OnListUsersCallback? onListUsers}) → void
lsUsers() Future<ErrorCode>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rmUser(int id) Future<ErrorCode>
saveFile(List<int> data, String name) Future<File>
inherited
setDoc(List<Slide> slides, String name, {File? document}) Future<ErrorCode>
Notifies the server that we need to set a document.
setProfile(int toUserId, int index) Future<ErrorCode>
Notifies the server that we need to set a profile.
sync() Future<ErrorCode>
Notifies the server that we need to set a profile.
toBytes() List<int>
inherited
toString() String
A string representation of this object.
inherited

Operators

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