OutSystems Forge 日本語データベース

iBeacons Plugin

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

Forge英文サイト

2018-02-21 1.0.0 OutSystems Experts All All Plug-ins
iBeaconsをサポートして、OutSystemsのモバイルアプリケーションを強化します。 リージョンを監視してビーコンを簡単にスキャン!
iBeaconsプラグインのドキュメント iBeacons Pluginは、OutSystemsのモバイルアプリケーションで、AndroidとiOSの両方のプラットフォームでビーコンスキャンや地域監視などのビーコン機能を活用できます。 API/クライアントアクション アクション/説明 CheckIBeaconPluginを確認する cordovaとiBeacons Pluginの両方が使用可能かどうかをチェックします。 GetAuthorizationStatus デバイスに認可ステータスを照会します。 Androidでは、Bluetoothの使用が許可されているか、Bluetoothが有効になっているかどうかを確認します。 iOSでは、ロケーションサービスの承認ステータスを確認します。 GetMonitoredRegions 監視対象として登録されている領域のリストを取得します。 GetRangedRegions スキャンするように登録されているビーコンのリストを取得する。 IsBluetoothEnabled Bluetoothが有効になっているかどうか確認する。 IsRangingAvailable デバイスがビーコンのスキャン(レンジング)をサポートしているかどうかを確認します。 RequestAlwaysAuthorization アプリケーションが終了していても(iOS上)、ロケーションサービスを常に使用するためのアクセス権をユーザーに要求するように求めます。 Androidでは、Bluetoothと位置情報サービスの使用をリクエストしています。 RequestStateForRegion iOSのみ。指定された領域の状態を照会します。 RequestWhenInUseAuthorization アプリケーションの使用中にロケーションサービスを使用するためのアクセス権を要求するようにユーザーに要求します。 Androidでは、Bluetoothと位置情報サービスの使用をリクエストしています。 StartMonitoringForRegion 提供された地域の監視を開始しようとする試み StartRangingBeaconsInRegion 提供された地域のビーコンのレンジングを開始しようとする試み StopMonitoringForRegion 提供された地域の監視を停止しようとする試み StopRangingBeaconsInRegion 提供された地域のビーコンのレンジングを停止しようとする試み EnableBluetooth Androidのみ。ユーザーにBluetoothを有効にするように促す DisableBluetooth Androidのみ。ユーザーにBluetoothを無効にするように促す Webブロック ウェブブロック/説明 iBeaconCentralDispatcher このWebブロックは、ビーコンイベントの主要な中心です。このコンポーネントは、ビーコンに関連するイベントを受信すると予想されるすべての画面に配置する必要があります。 次のイベントが利用可能です: OnDidDetermineStateForRegion - 領域の状態が決定されるとトリガーされます。配送時に地域と州を提供します。状態値は、次のいずれかのオプションです。 CLRegionStateInside CLRegionStateOutside CLRegionStateUnknown ErrorUnknownCLRegionStateObjectReceived - (アンドロイドのみ) OnDidRangeBeacons - レンジングイベントが発生すると定期的にトリガされます。 OnDidStartMonitoringForRegion - リージョンが正常に登録された後にトリガーされ、モニターされます。 OnEnterRegion - デバイスが監視対象領域に入るとトリガされます OnExitRegion - デバイスが監視対象領域を終了するとトリガされる OnMonitoringDidFailForRegionWithError - 監視する領域を登録しようとした後にトリガされます。エラーの詳細を追加します。 ビーコンとリージョン ビーコンは、UUID、MajorおよびMinorによって一意に識別されます。メジャーとマイナーは、通常メーカーのコンパニオンソフトウェアを使用して設定するか、購入時に決定することができますが、UUIDは静的で製造時に設定されます。 1つの領域は、1つ以上のビーコンで構成することができる。たとえば、UUID = 00000000-0000-0000-0000-000000000000とメジャー1で構成され、マイナーが指定されていない領域は、同じUUIDとメジャーを含み、マイナーで変化する多数のビーコンで構成できます。 例: UUID = 00000000-0000-0000-0000-000000000000およびメジャー= 1の領域Aは、次のビーコンを持つことができます。 UUID メジャー、マイナー 00000000-0000-0000-0000-000000000000 1 1 00000000-0000-0000-0000-000000000000 1 2 00000000-0000-0000-0000-000000000000 1 3 使用法 地域をどのように監視しますか? 地域を監視するためには、ユーザーはロケーションサービスとBluetoothにアクセスするためのアクセス許可を与える必要があります。アプリケーションのコンテキストで、アクセス許可を要求するのに適している場所を決め、RequestAlwaysAuthorizationまたはRequestWhenInUseAuthorizationのいずれかを使用して、ユーザーに許可を求めるプロンプトを出します。 iBeaconCentralDispatcher WebBlockを画面に配置し、OnEnterRegionおよびOnExitRegionのイベントリスナーを追加して、モニタイベントを受け取るようにしてください。 次に、StartMonitoringForRegionクライアントアクションを使用して1つまたは複数の地域に登録し、登録ステータスに関するフィードバックを受け取るために、iBeaconCentralDispatcherでOnDidStartMonitoringForRegionおよびOnMonitoringDidFailForRegionWithErrorのリスナーを追加します。 提案:iBeaconCentralDispatcherをレイアウトに配置し、アプリケーション全体でアクセス可能にします。 ビーコンをスキャン/レンジするにはどうすればよいですか? Ranging / Scanning for beaconでは、RSSI(受信信号強度インジケータ)、近接度、精度、UUID、メジャー、マイナーなどの可視ビーコンに関する詳細情報をアプリケーションが取得できます。 最初に、位置情報サービスとBluetoothにアクセスするためのユーザーのアクセス権を要求するのに適したアプリケーションのコンテキストをどこで決定し、RequestAlwaysAuthorizationまたはRequestWhenInUseAuthorizationを使用します。 次に、iBeaconCentralDispatcher WebBlockを画面に配置し、OnDidRangeBeaconsのイベントリスナーを追加します。デバイスが地域のビーコンの近くにある場合、ビーコンのリストはOnDidRangeBeaconsイベントを通じて配信されます。

[Overview]
Empower your OutSystems mobile application with iBeacons support. Monitor for Regions and scan Beacons easily!
[Detail]
iBeacons Plugins Documentation iBeacons Plugin enables your OutSystems mobile application to leverage beacons functionalities such as beacon scanning and region monitoring on both Android and iOS platforms. API/Client Actions Action/Description CheckIBeaconPlugin Checks if both cordova and iBeacons Plugin is available for usage. GetAuthorizationStatus Queries the devices for authorization status. On Android, checks if Bluetooth usage is allowed and if Bluetooth is enabled. On iOS, checks for location services authorization status. GetMonitoredRegions Retrieve a list of regions that were registered to be monitored. GetRangedRegions Retrieve a list of beacons that are registered to be scanned IsBluetoothEnabled Check if Bluetooth is enabled IsRangingAvailable Check if the device supports scanning for beacons (ranging) RequestAlwaysAuthorization Prompts the user to request permissions to always use location services, even when the application is closed (on iOS); On Android, requests usage of Bluetooth and location services RequestStateForRegion iOS Only. Queries the state of a given region. RequestWhenInUseAuthorization Prompts the user to request permissions to use location services when the application is in usage; On Android, requests usage of Bluetooth and location services StartMonitoringForRegion Attempts to start monitoring for a provided region StartRangingBeaconsInRegion Attempts to start ranging for beacons on the provided region StopMonitoringForRegion Attempts to stop monitoring for the provided region StopRangingBeaconsInRegion Attempts to stop ranging for beacons on the provided region EnableBluetooth Android only. Prompts the user to enable Bluetooth DisableBluetooth Android only. Prompts the user to disable Bluetooth Web blocks Web Block/Description iBeaconCentralDispatcher This webblock is the main central for beacon events. This component should be placed on all screens where it is expected to receive events related to beacons. The following events are available: OnDidDetermineStateForRegion - Triggered when the state of a region is determined. Provides the region and the state upon delivery. State value is one of the following options: CLRegionStateInside CLRegionStateOutside CLRegionStateUnknown ErrorUnknownCLRegionStateObjectReceived - (Android only) OnDidRangeBeacons - Triggered periodically when a ranging event occurs. OnDidStartMonitoringForRegion - Triggered after a region is registered successfully to be monitored OnEnterRegion - Triggered when the device is enters a monitored region OnExitRegion - Triggered when the device exits a monitored region OnMonitoringDidFailForRegionWithError - Triggered after an attempt to register a region to be monitored. Provides additional details of the error. Beacons and Regions A Beacon is uniquely identified by a UUID, Major and Minor. The UUID is static and is set upon manufacture while Major and Minor can usually be set using the manufacturer companion software or decided when they are bought. A region can be composed of one or more beacons. For example, a region composed of UUID = 00000000-0000-0000-0000-000000000000 and Major 1 but no Minor specified can be composed of many beacons that contain the same UUID and Major but vary on the Minor. Examples: Region A with UUID = 00000000-0000-0000-0000-000000000000 and Major = 1 can have the following beacons: UUID Major Minor 00000000-0000-0000-0000-000000000000 1 1 00000000-0000-0000-0000-000000000000 1 2 00000000-0000-0000-0000-000000000000 1 3 Usage How do I monitor regions? In order to monitor regions, the user has to grant permissions to access location services and Bluetooth. Decide where in the context of your application you see fit to request for permissions and use either RequestAlwaysAuthorization or RequestWhenInUseAuthorization in order to prompt the user for permissions. Make sure to place the iBeaconCentralDispatcher WebBlock on a screen and add event listeners for OnEnterRegion and OnExitRegion in order to receive monitor events. Next, register for one or more regions using StartMonitoringForRegion client action and, in order to receive feedback on the status of the registration, add a listener for OnDidStartMonitoringForRegion and OnMonitoringDidFailForRegionWithError on iBeaconCentralDispatcher. Suggestion: Place the iBeaconCentralDispatcher on the Layout to make it accessible throughout the application. How do I scan/range for beacons? Ranging/Scanning for beacons allows the application to get detailed information about visible beacons such as RSSI (Received Signal Strength Indicator), Proximity, Accuracy, UUID, Major and Minor. First, decide where on the context of the application you see fit to request user permission to access location services and Bluetooth and use either RequestAlwaysAuthorization or RequestWhenInUseAuthorization. Next, make sure to place the iBeaconCentralDispatcher WebBlock on a screen and add an event listener for OnDidRangeBeacons. If the devices is near any of the beacons from the region, a list of beacons will be delivered through the OnDidRangeBeacons event.
戻る