This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void setDamageAreaEvent() | |
{ | |
// ダメージ領域用のiBeaconの近くにいるとき、およそ毎秒1回ペースでダメージ処理を行うようにする。 | |
_beahat.AddObservableBeaconWithCallback(_damageAreaUuid, _damageAreaMajor, _damageAreaMinor, | |
_thresholdRssi, | |
1000, | |
receiveDamage); | |
} | |
private void startScan() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Android.Preferences; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.ComponentModel; | |
namespace VoiceRecognitionSample.Models | |
{ | |
// 音声認識用のdependency service。 | |
// プロパティの変更をViewModelで捕まえるため、INotifyPropertyChangedを継承している。 | |
public interface IVoiceRecognitionService : INotifyPropertyChanged | |
{ | |
// 音声認識が実行中かどうか(実行中の間のみtrueを返す) | |
bool IsRecognizing { get; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Transmission Background</title> | |
<link rel="stylesheet" href="Background_Transmission.css"> | |
<script src="jquery-2.1.4.min.js"></script> | |
<script src="Background_Transmission.js"></script> | |
</head> | |
<body> | |
(省略) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// BLEの発信を制御するクラスのインスタンス | |
private BluetoothLEAdvertisementPublisher blePublisher = new BluetoothLEAdvertisementPublisher(); | |
// 発信 | |
public void StartTransmission(Guid uuid, ushort major, ushort minor, sbyte txPower) | |
{ | |
// BLE発信用のデータを格納する箱を作成 | |
BluetoothLEManufacturerData bleManufacturerData = new BluetoothLEManufacturerData() | |
{ | |
CompanyId = Const.COMPANY_CODE_APPLE |