OutSystems Forge 日本語データベース

Orientation Event

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

Forge英文サイト

2017-11-22 1.0.0 José Costa All All Widgets
デバイスが向きを変えるとイベントが発生します。 そのイベントのハンドラーでは、新しい方向(縦または横)が取得されます。
このコンポーネントをスクリーンで使用すると、デバイスの向きが変わるとイベントが発生します。 使用法: OrientationEventブロックを画面(または画面で使用されているレイアウトブロック)に挿入します。 テキスト型の入力パラメータを持つクライアントアクションを追加する そのクライアントアクションをOrientationEventイベントのハンドラとして追加し、入力パラメータをイベントの変数に設定します デバイスの向きが変更されると、イベントが発生し、クライアントのアクションが呼び出され、クライアントアクションの入力パラメータに新しい方向( 'landscape'または 'portrait')が表示されます。 AndroidとiOSでテストされました。

[Overview]
Raises an Event when the device changes orientation. In the handler for that event you get the new orientation: portrait or landscape.
[Detail]
This component, when used in a Screen raises an event when the device changes orientation. Usage: Insert the OrientationEvent Block in your Screen (or in the Layout Block that is used by your Screens) Add a Client Action with an input parameter of type text Add that Client Action as Handler of the OrientationEvent Event and set the input parameter to be the Variable of the Event When the device changes orientation the event will be raised, your client action will be called and you will get in the input parameter of your client action the new orientation: 'landscape' or 'portrait'. It was tested in Android and iOS.
戻る