OutSystems Forge 日本語データベース

Exit On Back

※Forge全件データの日本語検索サービスをご利用になりたい場合は、こちらまでお問合せください。

Forge英文サイト

2017-01-18 1.0.1 Grazina 10.0.200.2 All All Plug-ins
Android上でネイティブの戻るをタップしてアプリケーションを終了できます
戻るボタンを使用してアプリケーションを終了できます(画面ごと)。 ダブルタップして利用可能な状態にします。全体の手順は次のとおりです。 TapTwiceToExitブールパラメータをtrueに設定し、必要に応じてTabExpiryに猶予期間を定義します(デフォルト:2秒) ユーザーがネイティブの戻るボタンをタップすると、定義された有効期限のタイムアウトが設定され、BackTapイベントがトリガーされます。ここには、「Tap back again to leave」というメッセージが表示されます。 Android用の9Gagと似ています。 ユーザーがもう一度タップすると、一緒に完了します。 その間に戻るボタンを再度タップしないと、2秒に設定されたタイムアウトによって新しいイベントBackTapExpiredがトリガーされます。これは、最初のタップが無視されたためメッセージを消去するためです。 ユーザが第1タップと第2タップとの間をナビゲートすると、タイムアウトがリセットされ、ユーザは再び使用してナビゲートすることができます。 デモをチェック! Outsystemsで動作するようになりました。現在、Outside Systemsを終了するのではなく、標準のコードバス方式を使用するため、メイン画面に戻ります。

[Overview]
Allows exiting your application on tapping the native back on Android
[Detail]
Allows using back button to exit the application (per screen). Double tap to exit available. Here's the overall procedure: Set the TapTwiceToExit boolean parameter to true, and define a grace period on TabExpiry if necessary (default: 2 seconds) When user taps the native back button, a timeout is setup for the defined expiry period, and BackTap event is triggered. This is where you can show a message saying "Tap back again to leave". Just like 9Gag for Android. If the user taps back again, you're done with him. If he doesn't tab the back button again during the period, a new event BackTapExpired is triggered by the timeout set on 2. This is where you should clear the message, because the first tap was ignored. If the user navigates between the first and second tap, the timeout is reset, and user is able to navigate using back again. Check the demo! Works on OutSystems Now, as it only uses standard cordova methods, only instead of exiting OutSystems Now, it goes back to the main screen... Keep tapping back!
戻る