Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
include
outlinefalse
indent
excludeCAVRNUS
typelist
class
printablefalse

Disclaimer

This API reference is still in early developmental stages. As such, some information may be missing or out of date. Feel free to refer to this documentation as a low-level index of Engine classes and functions. However, please reference the latest code for a complete understanding of functionality and performance.

...

Getting Started

Orientation

...

CAVRNUS TYPES

CavrnusSpaceConnection

This is the most important object in Cavrnus. It represents a user’s connection to a Space. As such it is used to access Properties, hook Users, etc.

CavrnusAuthentication

This contains the Token received from the server upon a successful login. You can only ever have one active login at a time. At the moment, outside of just existing, this class doesn’t really “do” anything.

CavrnusSpaceInfo

This is the live info about a given Space. It can be used to create a Spaces List, like the one provided in Cavrnus by default.

CavrnusUser

This represents an individual user, and can be used to fetch their properties at runtime.

CavrnusLivePropertyUpdate

This is used to post Transient Updates.

CavrnusSpawnedObject

This represents an object that was spawned in a synchronized way at runtime using Cavrnus. It is used to manage that objects properties and, if desired, to delete it.

CavrnusRemoteContent

Represents a file that has been uploaded to the Cavrnus Servers.

CavrnusInputDevice

This represents a microphone, and can be used to create a Audio/Video selector, like the one provided in Cavrnus by default.

CavrnusVideoInputDevice

This represents a Video Source (both Cameras and Desktop Streams), and can be used to create a Audio/Video selector, like the one provided in Cavrnus by default.

CAVRNUS FUNCTIONS

Core

InitializeCavrnus

Sets up all static helpers and systems

...

required for Cavrnus to run

...

void

Authentication

...

IsLoggedIn

...

Checks if you are logged in

...

N/A

...

bool

...

user credentials, allowing you to join valid spaces and make other requests

...

FString server,
FString email,
FString password,
FCavrnusAuthRecv onSuccess,
FCavrnusError onFailure

...

...

Creates a guest user

...

FString server,
FString userName,
FCavrnusAuthRecv onSuccess,
FCavrnusError onFailure

...

void

account with a given name and joins as that user

IsLoggedIn

Checks if you are logged in

AwaitAuthentication

Throws an even when user authentication is complete

Space Functions

FetchJoinableSpaces

Gets a list of all current spaces which can be joined

BindJoinableSpaces

Triggers when spaces become available to you that you can join, or when their metadata changes

...

FCavrnusSpaceInfoEvent spaceAdded, FCavrnusSpaceInfoEvent spaceUpdated, FCavrnusSpaceInfoEvent spaceRemoved

...

FCavrnusBinding

IsConnectedToAnySpace

Checks if there is any active connection to a space

...

bool

JoinSpace

Connects to a Space; joining voice & video and recieving/processing the journal

...

FString spaceId,
FCavrnusSpaceConnected onConnected, FCavrnusError onFailure

...

void

AwaitAnySpaceBeginLoading

Triggers when you begin attempting to join a space, returning the ID of the space being joined

AwaitAnySpaceConnection

Triggers immediately if you are already in a space, otherwise triggers as soon as you connect

...

FCavrnusSpaceConnected onConnected

...

void

...

AwaitAnySpaceBeginLoading

...

Triggers when you begin attempting to join a space, returning the ID of the space being joined

ExitSpace

Disconnects you from a given space.  You will stop recieving property updates, and lose user & voice connections

...

...

void

Color Property Functions

DefineColorPropertyDefaultValue

Defines what the application will show if a new prop value has not been assigned

...

...

void

GetColorPropertyValue

Gets the current property value, whether the default or the one currently set

...

...

Fcolor

BindColorPropertyValue

Triggers an Event when the property changes, plus an inital event when first bound

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName, FColorPropertyUpdated onPropertyUpdated

...

FCavrnusBinding

BeginTransientColorPropertyUpdate

Begins a temporary property update. This can be updated with UpdateWithNewData() This will show for everyone in the space, but will not be saved unless you call Finish().

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
FColor propertyValue,
FString transientToContinue = ""

...

PostColorPropertyUpdate

Updates the property value at the given path and synchronizes the data to the server

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
FColor propertyValue,
FString transientToFinish = ""

...

void

Bool Property Functions

DefineBoolPropertyDefaultValue

Defines what the application will show if a new prop value has not been assigned

...

...

void

GetBoolPropertyValue

Gets the current property value, whether the default or the one currently set

...

...

bool

BindBooleanPropertyValue

Triggers an Event when the property changes, plus an inital event when first bound

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
FBoolPropertyUpdated onPropertyUpdated

...

FCavrnusBinding

BeginTransientBoolPropertyUpdate

Begins a temporary property update. This can be updated with UpdateWithNewData() This will show for everyone in the space, but will not be saved unless you call Finish().

...

...

Fstring

PostBoolPropertyUpdate

Updates the property value at the given path and synchronizes the data to the server

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
bool propertyValue,
FString transientToFinish = ""

...

void

Float Property Functions

DefineFloatPropertyDefaultValue

Defines what the application will show if a new prop value has not been assigned

...

...

void

GetFloatPropertyValue

Gets the current property value, whether the default or the one currently set

...

...

float

BindFloatPropertyValue

Triggers an Event when the property changes, plus an inital event when first bound

...

...

FCavrnusBinding

BeginTransientFloatPropertyUpdate

Begins a temporary property update. This can be updated with UpdateWithNewData() This will show for everyone in the space, but will not be saved unless you call Finish().

...

...

Fstring

PostFloatPropertyUpdate

Updates the property value at the given path and synchronizes the data to the server

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
float propertyValue,
FString transientToFinish = ""

...

void

String Property Functions

DefineStringPropertyDefaultValue

Defines what the application will show if a new prop value has not been assigned

...

...

void

GetStringPropertyValue

Gets the current property value, whether the default or the one currently set

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName

...

BindStringPropertyValue

Triggers an Event when the property changes, plus an inital event when first bound

...

...

FCavrnusBinding

BeginTransientStringPropertyUpdate

Begins a temporary property update. This can be updated with UpdateWithNewData() This will show for everyone in the space, but will not be saved unless you call Finish().

...

...

Fstring

PostStringPropertyUpdate

Updates the property value at the given path and synchronizes the data to the server

...

...

void

Vector Property Functions

DefineVectorPropertyDefaultValue

Defines what the application will show if a new prop value has not been assigned

...

...

void

GetVectorPropertyValue

Gets the current property value, whether the default or the one currently set

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName

...

FVector4

BindVectorPropertyValue

Triggers an Event when the property changes, plus an inital event when first bound

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
FVectorPropertyUpdated onPropertyUpdated

...

BeginTransientVectorPropertyUpdate

Begins a temporary property update. This can be updated with UpdateWithNewData() This will show for everyone in the space, but will not be saved unless you call Finish().

...

...

Fstring

PostVectorPropertyUpdate

Updates the property value at the given path and synchronizes the data to the server

...

...

void

Transform Property Functions

DefineTransformPropertyDefaultValue

Defines what the application will show if a new prop value has not been assigned

...

...

void

GetTransformPropertyValue

Gets the current property value, whether the default or the one currently set

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName

...

Ftransform

BindTransformPropertyValue

Triggers an Event when the property changes, plus an inital event when first bound

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
FTransformPropertyUpdated onPropertyUpdated

...

BeginTransientTransformPropertyUpdate

Begins a temporary property update. This can be updated with UpdateWithNewData() This will show for everyone in the space, but will not be saved unless you call Finish().

...

...

Fstring

PostTransformPropertyUpdate

Updates the property value at the given path and synchronizes the data to the server

...

FCavrnusSpaceConnection spaceConn,
FString containerName,
FString propertyName,
FTransform propertyValue,
FString transientToFinish = ""

...

void

...

CavrnusLivePropertyUpdate

...

DestryObject

User Property Functions

GetUserSpeaking

Synchronously returns a boolean denoting if the user is speaking.

BindUserSpeaking

Binds an event to throw when the user starts/stops speaking.

GetUserMuted

Synchronously returns a boolean denoting if the user is muted.

BindUserMuted

Binds an event to throw when the user mutes/un-mutes.

GetUserStreaming

Synchronously returns a boolean denoting if the user is sharing a camera/video stream.

BindUserStreaming

Binds an event to throw when the user starts/stops sharing a camera/video stream.

GetUserName

Synchronously returns a string of the user’s name.

BindUserName

Binds an event to throw when the user’s name changes.

BindProfilePic

Binds an event to throw when the user’s profile pic changes.

Permissions

BindGlobalPolicy

Binds an event to throw when a policy is/isn't allowed for the user (returns false until policies are fetched & resolved)

BindSpacePolicy

Binds an event to throw when a policy is/isn't allowed for the user in a given space (returns false until policies are fetched & resolved)

Remote Content

UploadContent

Uploads a file from your disk to the Cavrnus Server

FetchAllUploadedContent

Fetches a list of available files on your Domain that you can download.

FetchFileById

Fetches a file from the Cavrnus Server and gives you a Stream.

Spawned Objects

SpawnObject

Instantiates the given object with no set properties (note you will need to pull the Container ID out of the Spawned Object and assign property values to it).

...

FCavrnusSpaceConnection spaceConn,
FString uniqueIdentifier

...

Fstring

Space Users

DestroyObject

Destroys the given object.

...

FCavrnusSpaceConnection spaceConn,
FCavrnusSpawnedObject spawnedObject

...

void

...

GetIfIsSpawnedObject

...

Gets the spawned object's data if it was created by Cavrnus

...

FCavrnusSpaceConnection spaceConn,
AActor* object

...

FCavrnusSpawnedObject

...

FCavrnusSpawnedObject

...

<< Pending >>

...

UseComponents

...

<< Pending >>

Space Users

AwaitLocalUser

Throws an event when the local CavrnusUser arrives in the space

GetCurrentSpaceUsers

Gives the list of current users in a space

BindSpaceUsers

Triggers whenever users join or leave a given space

...

FCavrnusSpaceConnection spaceConn,
FCavrnusSpaceUserEvent userAdded,
FCavrnusSpaceUserEvent userRemoved

...

Throws an

...

FCavrnusSpaceConnection spaceConn,
FCavrnusUser& User,
FCavrnusUserVideoFrameEvent OnVideoFrameUpdate

event with the user's current stream image

Voice and Video

...

SetUserStreamingState

SetLocalUserMutedState

Set my muted state

...

Set my muted state

SetLocalUserStreamingState

Set my streaming state

...

Set my streaming state

FetchAudioInputs

Gets available microphones

...

Gets available microphones

...

Sets which microphone

...

FetchAudioOutputs

...

Gets available speakers

...

Gets available speakers

...

UpdateAudioOutput

...

to use

...

Sets which speaker to use

FetchVideoInputs

Gets available camera/stream sources

...

Gets available camera/stream sources

UpdateVideoInput

Sets which camera/stream source to use

...

Sets which camera/stream source to use

...

GetCurrentInput

...

<< Pending >>

...

GetCurrentOutput

...