<doc>
	<legacy_id></legacy_id>
	<name>remoteControlReceived</name>
	<type>function</type>

	<syntax>
		<example>remoteControlReceived <i>eventType</i></example>
	</syntax>

	<synonyms>
	</synonyms>

	<summary>Sent when the remote control is enabled and a remote control operation occurs.</summary>

	<examples>
<example><p>on remoteControlReceived pEventType</p><p>    put pEventType &amp; return after field "log"</p><p>end remoteControlReceived</p></example>
	</examples>

	<history>
		<introduced version="6.1">Added</introduced>
		<deprecated version=""></deprecated>
		<removed version=""></removed>
		
		<experimental version=""></experimental>
		<nonexperimental version=""></nonexperimental>
	</history>

	<objects>
	</objects>

	<platforms>
		<ios/>
	</platforms>

	<classes>
		<mobile/>
	</classes>

	<security>
	</security>


	<classification>
	</classification>

	<references>
		<function tag="iphoneRemoteControlEnabled">iphoneRemoteControlEnabled Function</function>
		<command tag="iphoneEnableRemoteControl">iphoneEnableRemoteControl Command</command>
		<command tag="iphoneDisableRemoteControl">iphoneDisableRemoteControl Command</command>
		<command tag="iphoneSetAudioCategory">iphoneSetAudioCategory Command</command>
		<command tag="iphoneSetRemoteControlDisplay">iphoneSetRemoteControlDisplay Command</command>
	</references>

	<description>
	<overview>Handle the <b>remoteControlReceived</b> message if you want to perform an action when a remote control event occurs.</overview>

		<parameters>
  <parameter>
    <name>eventType</name>
    <description>A string describing the event type which occured. One of</description>
    <options option_title="">
      <option>
        <item>pause</item>
        <description/>
      </option>
      <option>
        <item>stop</item>
        <description/>
      </option>
      <option>
        <item>toggle play pause</item>
        <description/>
      </option>
      <option>
        <item>next track</item>
        <description/>
      </option>
      <option>
        <item>previous track</item>
        <description/>
      </option>
      <option>
        <item>begin seeking forward</item>
        <description/>
      </option>
      <option>
        <item>begin seeking backward</item>
        <description/>
      </option>
      <option>
        <item>end seeking forward</item>
        <description/>
      </option>
      <option>
        <item>end seeking backward</item>
        <description/>
      </option>
    </options>
  </parameter>		</parameters>

	<value></value>
	<comments>The remote control feature on iOS allows access to the audio controls both on an external device and also on the device itself when in lock screen (via double-tapping on the Home button).<p></p><p>When the remote control is enabled and a remote control event occurs the <b>remoteControlReceived</b> message is send to the current card.</p><p></p><p></p><note>This functionality is only available on iOS 5.x and above.</note></comments>
	</description>
</doc>