Path: blob/master/modules/openxr/doc_classes/OpenXRFutureResult.xml
10278 views
<?xml version="1.0" encoding="UTF-8" ?>1<class name="OpenXRFutureResult" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">2<brief_description>3Result object tracking the asynchronous result of an OpenXR Future object.4</brief_description>5<description>6Result object tracking the asynchronous result of an OpenXR Future object, you can use this object to track the result status.7</description>8<tutorials>9</tutorials>10<methods>11<method name="cancel_future">12<return type="void" />13<description>14Cancel this future, this will interrupt and stop the asynchronous function.15</description>16</method>17<method name="get_future" qualifiers="const">18<return type="int" />19<description>20Return the [code]XrFutureEXT[/code] value this result relates to.21</description>22</method>23<method name="get_result_value" qualifiers="const">24<return type="Variant" />25<description>26Returns the result value of our asynchronous function (if set by the extension). The type of this result value depends on the function being called. Consult the documentation of the relevant function.27</description>28</method>29<method name="get_status" qualifiers="const">30<return type="int" enum="OpenXRFutureResult.ResultStatus" />31<description>32Returns the status of this result.33</description>34</method>35<method name="set_result_value">36<return type="void" />37<param index="0" name="result_value" type="Variant" />38<description>39Stores the result value we expose to the user.40[b]Note:[/b] This method should only be called by an OpenXR extension that implements an asynchronous function.41</description>42</method>43</methods>44<signals>45<signal name="completed">46<param index="0" name="result" type="OpenXRFutureResult" />47<description>48Emitted when the asynchronous function is finished or has been cancelled.49</description>50</signal>51</signals>52<constants>53<constant name="RESULT_RUNNING" value="0" enum="ResultStatus">54The asynchronous function is running.55</constant>56<constant name="RESULT_FINISHED" value="1" enum="ResultStatus">57The asynchronous function has finished.58</constant>59<constant name="RESULT_CANCELLED" value="2" enum="ResultStatus">60The asynchronous function has been cancelled.61</constant>62</constants>63</class>646566