interface IArmMessageStream (Niantic.ARDK.Networking.ARSim.IArmMessageStream)

Overview

A message stream that handles tagging and serialization of objects, and automatically executing an Action upon receiving the correct object type. Handles messages from peers in the session as well as the server. More…

interface IArmMessageStream: IDisposable {
    // methods

    void Initialize(IMultipeerNetworking networking);

    IDisposable RegisterHandler< T >(
        Action<T> handler,
        ArmMessageStream.MessageSource sender
    );

    void RegisterTypeToTag(uint tag, Type type);
    void Send(object message, List<IPeer> targets, bool sendToArmServer);
    bool Unregister< T >();
};

// direct descendants

class ArmMessageStream;

Detailed Documentation

A message stream that handles tagging and serialization of objects, and automatically executing an Action upon receiving the correct object type. Handles messages from peers in the session as well as the server.

Note

Currently in internal development, and not useable