Event API の使用

警告 :

すべてのモバイル機能とモバイル関連機能は ColdFusion(2025リリース)で削除されました。

詳しくは、ColdFusion の非推奨の機能を参照してください。

開始する前に、イベント関数を参照してください。

「戻る」ボタンイベントの処理

<cfclientsettings enableDeviceAPI=true>
<cfclient>
<cfset cfclient.events.onBackButton(&quot;callbackfunc&quot;)>
<cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; >
<!--- 「戻る」ボタンが押されました --->
</cffunction>
</cfclient>
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset cfclient.events.onBackButton(&quot;callbackfunc&quot;)> <cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; > <!--- 「戻る」ボタンが押されました ---> </cffunction> </cfclient>
<cfclientsettings enableDeviceAPI=true>
<cfclient>
 
<cfset cfclient.events.onBackButton(&quot;callbackfunc&quot;)>
 
<cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; >
<!--- 「戻る」ボタンが押されました --->
</cffunction> 

</cfclient>

バッテリー切れイベントの処理

<cfclientsettings enableDeviceAPI=true>
<cfclient>
<cfset cfclient.events.onBatteryCritical(&quot;callbackfunc&quot;)>
<cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; >
<!--- バッテリーが著しく低下しています。--->
</cffunction>
</cfclient>
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset cfclient.events.onBatteryCritical(&quot;callbackfunc&quot;)> <cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; > <!--- バッテリーが著しく低下しています。---> </cffunction> </cfclient>
<cfclientsettings enableDeviceAPI=true>
<cfclient>
 
<cfset cfclient.events.onBatteryCritical(&quot;callbackfunc&quot;)>

<cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; >
<!--- バッテリーが著しく低下しています。--->
</cffunction> 
</cfclient>

低バッテリーイベントの処理

<cfclientsettings enableDeviceAPI=true>
<cfclient>
<cfset cfclient.events.onBatteryLow(&quot;callbackfunc&quot;)>
<cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; >
<!--- バッテリーが低下しています。--->
</cffunction>
</cfclient>
<cfclientsettings enableDeviceAPI=true> <cfclient> <cfset cfclient.events.onBatteryLow(&quot;callbackfunc&quot;)> <cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; > <!--- バッテリーが低下しています。---> </cffunction> </cfclient>
<cfclientsettings enableDeviceAPI=true>
<cfclient>
 
<cfset cfclient.events.onBatteryLow(&quot;callbackfunc&quot;)>

<cffunction access=&quot;public&quot; name=&quot;callbackfunc&quot; returntype=&quot;void&quot; >
<!--- バッテリーが低下しています。--->
</cffunction> 
</cfclient>

ヘルプをすばやく簡単に入手

新規ユーザーの場合

Acrobat 購入相談

Acrobat 購入相談

Acrobat 購入相談

Acrobat 購入相談