コード例 #1
0
ファイル: BandAPI.cs プロジェクト: yaokailing/HoloInOne
        public static void vibrateBand(VibrateBand vibrationType)
        {
            switch (vibrationType)
            {
            case VibrateBand.Win:
                bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.ThreeToneHigh);
                break;

            case VibrateBand.HitBall:
                bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.OneToneHigh);
                break;
            }
        }
コード例 #2
0
    public void CauseVibration(VibrateBand vibrationType)
    {
#if REAL_APP
        switch (vibrationType)
        {
        case VibrateBand.Win:
            bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.ThreeToneHigh);
            break;

        case VibrateBand.HitBall:
            bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.OneToneHigh);
            break;
        }
#endif
    }
コード例 #3
0
ファイル: BandAPI.cs プロジェクト: yaokailing/HoloInOne
    public void CauseVibration(VibrateBand vibrationType)
    {
#if REAL_APP
        switch (vibrationType)
        {
            case VibrateBand.Win:
                bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.ThreeToneHigh);
                break;
            case VibrateBand.HitBall:
                bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.OneToneHigh);
                break;
        }
#endif
    }
コード例 #4
0
ファイル: BandAPI.cs プロジェクト: yaokailing/HoloInOne
 public static void vibrateBand(VibrateBand vibrationType) {
     switch(vibrationType)
     {
         case VibrateBand.Win:
             bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.ThreeToneHigh);
             break;
         case VibrateBand.HitBall:
             bandClient.NotificationManager.VibrateAsync(Microsoft.Band.Notifications.VibrationType.OneToneHigh);
             break;
     }
 }