unreal.MagicLeapSecureStorage

class unreal.MagicLeapSecureStorage(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Function library for the Magic Leap Secure Storage API. Currently supports bool, uint8, int32, float, FString, FVector, FRotator and FTransform via Blueprints. Provides a template function for any non specialized types to be used via C++. TODO: Support TArray and a generic USTRUCT.

C++ Source:

  • Plugin: MagicLeap
  • Module: MagicLeapSecureStorage
  • File: MagicLeapSecureStorage.h
classmethod delete_secure_data(key) → bool

Deletes the data associated with the specified key.

Parameters:key (str) – The string key of the data to delete.
Returns:True if the data was deleted successfully or did not exist altogether, false otherwise.
Return type:bool
classmethod get_secure_bool(key) → bool or None

Retrieves the boolean associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (bool): Reference to the variable that will be populated with the stored data.

Return type:bool or None
classmethod get_secure_byte(key) → uint8 or None

Retrieves the byte (uint8) associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (uint8): Reference to the variable that will be populated with the stored data.

Return type:uint8 or None
classmethod get_secure_float(key) → float or None

Retrieves the float associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (float): Reference to the variable that will be populated with the stored data.

Return type:float or None
classmethod get_secure_int(key) → int32 or None

Retrieves the integer (int32) associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (int32): Reference to the variable that will be populated with the stored data.

Return type:int32 or None
classmethod get_secure_rotator(key) → Rotator or None

Retrieves the rotator associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (Rotator): Reference to the variable that will be populated with the stored data.

Return type:Rotator or None
classmethod get_secure_string(key) → str or None

Retrieves the string associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (str): Reference to the variable that will be populated with the stored data.

Return type:str or None
classmethod get_secure_transform(key) → Transform or None

Retrieves the transform associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (Transform): Reference to the variable that will be populated with the stored data.

Return type:Transform or None
classmethod get_secure_vector(key) → Vector or None

Retrieves the vector associated with the specified key.

Parameters:key (str) – The string key to look for.
Returns:True if the key was found and output parameter was successfully populated with the data, false otherwise.

data_to_retrieve (Vector): Reference to the variable that will be populated with the stored data.

Return type:Vector or None
classmethod put_secure_bool(key, data_to_store) → bool

Stores the boolean under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (bool) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_byte(key, data_to_store) → bool

Stores the byte (uint8) under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (uint8) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_float(key, data_to_store) → bool

Stores the float under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (float) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_int(key, data_to_store) → bool

Stores the integer (int32) under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (int32) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_rotator(key, data_to_store) → bool

Stores the rotator under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (Rotator) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_string(key, data_to_store) → bool

Stores the string under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (str) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_transform(key, data_to_store) → bool

Stores the transform under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (Transform) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool

classmethod put_secure_vector(key, data_to_store) → bool

Stores the vector under the specified key. An existing key would be overwritten.

Parameters:
  • key (str) – String key associated with the data.
  • data_to_store (Vector) – The data to store.
Returns:

True if the data was stored successfully, false otherwise.

Return type:

bool