FExtensionContext

The context information of the extension.

USTRUCT(BlueprintType)
struct FExtensionContext {
	GENERATED_BODY()
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ExtensionContext")
	bool isValid = false;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ExtensionContext")
	int64 uid = 0;
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ExtensionContext")
	FString providerName = "";
	UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Agora|ExtensionContext")
	FString extensionName = "";
	FExtensionContext(){}
	FExtensionContext(const agora::rtc::ExtensionContext& AgoraData){
		isValid = AgoraData.isValid;
		uid = AgoraData.uid;
		providerName = UTF8_TO_TCHAR(AgoraData.providerName);
		extensionName = UTF8_TO_TCHAR(AgoraData.extensionName);
	}
	agora::rtc::ExtensionContext CreateAgoraData() const {
		agora::rtc::ExtensionContext AgoraData;
		AgoraData.isValid = isValid;
		AgoraData.uid = uid;
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.providerName, providerName)
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMALLOC(AgoraData.extensionName, extensionName)
		return AgoraData;
	}
	void FreeAgoraData(agora::rtc::ExtensionContext& AgoraData) const {
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.providerName)
		SET_UABT_FSTRING_TO_CONST_CHAR___MEMFREE(AgoraData.extensionName)
	}
};

Attributes

isValid
Whether the uid in FExtensionContext is valid:
  • true: The uid is valid.
  • false: The uid is invalid.
uid
The user ID. 0 represents a local user, while greater than 0 represents a remote user.
providerName
The name of the extension provider.
extensionName
The name of the extension.