AsyncBinding<T> class

Constructors

AsyncBinding (String $interfaceName)

Creates a binding object in an unbound state.

Properties

$interfaceName → String

The name of the interface T as a string.
final

hashCode → int

The hash code for this object.
read-onlyinherited

impl → T

The implementation of T bound using this object.
read-only

isBound → bool

Is this interface bound?
read-onlyinherited

isClosed → bool

Is this interface closed?
read-onlyinherited

isUnbound → bool

Is this interface unbound?
read-onlyinherited

runtimeType → Type

A representation of the runtime type of the object.
read-onlyinherited

stateInterfaceState

Gets the current state.
read / writeinherited

stateChanges → Stream<InterfaceState>

A stream of state changes.
read-onlyinherited

whenBound → Future<void>

A future that completes when the interface becomes bound.
read-onlyinherited

whenClosed → Future<void>

A future that completes when the interface is closed.
read-onlyinherited

Methods

bind(T impl, InterfaceRequest interfaceRequest) void

Binds the given implementation to the given interface request.

close([int statusCode]) void

Close the bound channel.

handleMessage(IncomingMessage message, OutgoingMessageSink respond) void

Decodes the given message and dispatches the decoded message to impl.

noSuchMethod(Invocation invocation) dynamic

Invoked when a non-existent method or property is accessed.
inherited

sendMessage(OutgoingMessage response) void

Sends the given message over the bound channel.

toString() String

A string representation of this object.
inherited

unbind() InterfaceRequest<T>

Unbinds impl and returns the unbound channel as an interface request.

wrap(T impl) InterfaceHandle<T>

Returns an interface handle whose peer is bound to the given object.

Operators

operator ==(Object other) bool

The equality operator.
inherited