ResourceRegistration<T extends Resource> class Viam SDK

An object representing a resource to be registered.

This object is generic over Resource, and it includes various required functionality for the resource (e.g. creating an RPC client) If creating a custom Resource, you must register the resource using ResourceRegistration.

Constructors

ResourceRegistration(Subtype subtype, Resource rpcClientCreator(String name, ClientChannelBase channel))

Properties

hashCode int
The hash code for this object.
no setterinherited
rpcClientCreator Resource Function(String name, ClientChannelBase channel)
A method to create a ResourceRPCClient
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtype Subtype
The Subtype of the resource
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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