class HlapiSessionExtension (Niantic.ARDK.Networking.HLAPI.HlapiSessionExtension)

Overview

Provides a HlapiSession that is tied to each _NativeMultipeerNetworking instance that is created. These HlapiSessions can be accessed with the Guid of the networking instance, and will be destroyed when the networking instance is destroyed. More…

class HlapiSessionExtension {
public:
    // properties

    IReadOnlyDictionary<Guid, HlapiSession> ManagedSessionLookup;

    // methods

    static HlapiSession GetOrCreateManagedSession(this IMultipeerNetworking networking);
    static HlapiSession GetOrCreateManagedSession(this Scene scene);
};

Detailed Documentation

Provides a HlapiSession that is tied to each _NativeMultipeerNetworking instance that is created. These HlapiSessions can be accessed with the Guid of the networking instance, and will be destroyed when the networking instance is destroyed.

Properties

IReadOnlyDictionary<Guid, HlapiSession> ManagedSessionLookup

The currently active HlapiSessions managed by this class

Methods

static HlapiSession GetOrCreateManagedSession(this IMultipeerNetworking networking)

Gets or creates a HlapiSession that corresponds to a specific networking instance.

Parameters:

networking

The networking instance to get a HlapiSession for

Returns:

The HlapiSession that corresponds to the input network