/// <summary> /// Initializes a new instance of the <see cref="ScanLayer"/> class. /// </summary> /// <param name="uri">The URI that is navigated to when the action button is hit.</param> public ScanLayer(string uri) : this() { Callback = new Link(uri) { Text = Device.Resources.GetString("Done") ?? "Done" }; }
/// <summary> /// Initializes a new instance of the <see cref="ScanLayer"/> class. /// </summary> /// <param name="scanningText">The text that is displayed to the user while the layer is on the screen.</param> /// <param name="actionButtonText">The text that is displayed on the layer's single action button.</param> /// <param name="uri">The URI that is navigated to when the action button is hit.</param> public ScanLayer(string scanningText, string actionButtonText, string uri) { DisplayText = scanningText; Callback = new Link(uri) { Text = actionButtonText, }; LayerStyle.LayerBackgroundColor = Color.White; LayerStyle.LayerItemBackgroundColor = Color.White; }