NRSDKApiForUnity
Classes
XRXREALXREALDialogView
Unity.XR.XREAL.XREALDialogView

Public Member Functions

virtual void ShowInQueue ()
 
virtual XREALDialogView SetTitle (string title)
 
virtual XREALDialogView SetContent (string content)
 
virtual XREALDialogView SetDuration (float duration)
 
virtual XREALDialogView SetConfirmAction (Action callback)
 
virtual XREALDialogView SetCloseCallback (Action< XREALDialogView > closeCallback)
 

Events

Action OnConfirm
 
Action< XREALDialogViewClosedCallback
 

Detailed Description

Represents the UI for a dialog pop-up window. Provides methods to configure and display the dialog in the application.

Member Function Documentation

◆ SetCloseCallback()

virtual XREALDialogView Unity.XR.XREAL.XREALDialogView.SetCloseCallback ( Action< XREALDialogView > closeCallback)
virtual

Sets the callback action to be triggered when the GameObject is closed.

Parameters
closeCallback
Returns

◆ SetConfirmAction()

virtual XREALDialogView Unity.XR.XREAL.XREALDialogView.SetConfirmAction ( Action callback)
virtual

Sets the callback action to be triggered when the confirm button is clicked.

Parameters
callback
Returns

◆ SetContent()

virtual XREALDialogView Unity.XR.XREAL.XREALDialogView.SetContent ( string content)
virtual

Sets the content of the dialog's message.

Parameters
content
Returns

◆ SetDuration()

virtual XREALDialogView Unity.XR.XREAL.XREALDialogView.SetDuration ( float duration)
virtual

Sets the duration for the UI to automatically hide. A value of 0 indicates the UI will not auto-hide.

Parameters
durationseconds
Returns

◆ SetTitle()

virtual XREALDialogView Unity.XR.XREAL.XREALDialogView.SetTitle ( string title)
virtual

Sets the content of the dialog's title.

Parameters
title
Returns