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
var uuid = new NSUuid ("B9407F30-F5F8-466E-AFF9-25556B57FE6D"); | |
var region = new BeaconRegion(uuid, "MyRegion"); | |
_beaconManager.StartRangingBeacons(region); |
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
public UIColor GetColourForBeacon(BeaconColor beaconColor) | |
{ | |
switch (beaconColor) | |
{ | |
case BeaconColor.Blueberry: | |
return UIColor.FromRGB(72, 61, 139); | |
case BeaconColor.Mint: | |
return UIColor.FromRGB(173, 255, 47); | |
case BeaconColor.Ice: | |
return UIColor.FromRGB(72, 209, 204); |
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
public static class ObservableExtensions | |
{ | |
/// <summary> | |
/// Creates a stream that can be paused and resumed. Whilst paused any updates to the source stream will be saved in a replay stream. | |
/// Once the stream is resumed, the items saved in the replay stream will be published to the ouput stream. | |
/// The stream can be paused and resumed by publishing a bool to the isPausedStream - true to pause, false to resume. | |
/// By default the stream starts as paused, but this can be overridden by setting the isPausedOnStart parameter. | |
/// </summary> | |
/// <typeparam name="T">The object that provides notification information.This type parameter is covariant. That is, you can use either the type you specified or any type that is more derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.</typeparam> | |
/// <param name="sourceStream">The stream to read from and either republish or save whilst the strea |
NewerOlder