unreal.MagicLeapIdentity

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

Bases: unreal.Object

Class which provides functions to read and update the user’s Magic Leap profile.

C++ Source:

  • Plugin: MagicLeap
  • Module: MagicLeapIdentity
  • File: MagicLeapIdentity.h
get_all_available_attributes() -> (MagicLeapIdentityError, available_attributes=Array(MagicLeapIdentityAttributeType))

Get the attributes available for the user’s Magic Leap profile. Note that this does not request the values for these attribtues. This function makes a blocking call to the cloud. You can alternatively use GetAllAvailableAttributesAsync() to request the attributes asynchronously.

Returns:Error code when getting the list of available attributes.

available_attributes (Array(MagicLeapIdentityAttributeType)): Output parameter populated with the list of attributes available for the user’s Magic Leap profile.

Return type:Array(MagicLeapIdentityAttributeType)
get_all_available_attributes_async(result_delegate) → None

Asynchronous call to get the attributes available for the user’s Magic Leap profile. Note that this does not request the values for these attribtues.

Parameters:result_delegate (AvailableIdentityAttributesDelegate) – Callback which reports the list of available attributes.
Returns:Error code when getting the list of available attributes.
request_attribute_value(requested_attribute_list) -> (MagicLeapIdentityError, requested_attribute_values=Array(MagicLeapIdentityAttribute))

Get the values for the attributes of the user’s Magic Leap profile. This function makes a blocking call to the cloud. You can alternatively use RequestAttributeValueAsync() to request the attribute values asynchronously.

Parameters:requested_attribute_list (Array(MagicLeapIdentityAttributeType)) – List of attributes to request the value for.
Returns:Error code when getting the attribute values.

requested_attribute_values (Array(MagicLeapIdentityAttribute)): Output parameter populated with the list of attributes and their values.

Return type:Array(MagicLeapIdentityAttribute)
request_attribute_value_async(requested_attribute_list, result_delegate) → MagicLeapIdentityError

Asynchronous call to get the values for the attributes of the user’s Magic Leap profile.

Parameters:
Returns:

Error code when getting the attribute values.

Return type:

MagicLeapIdentityError