Skip to content

Instantly share code, notes, and snippets.

@Lucas2k
Created February 2, 2019 19:31
Show Gist options
  • Save Lucas2k/543f4896b7876e0e362f0c0d6766377a to your computer and use it in GitHub Desktop.
Save Lucas2k/543f4896b7876e0e362f0c0d6766377a to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Text;
using Xamarin.Forms;
namespace Sample
{
public class Yasea : View
{
public static readonly BindableProperty RtmpUrlProperty =
BindableProperty.Create(nameof(RtmpUrl), typeof(string), typeof(Yasea), string.Empty);
public string RtmpUrl
{
set { SetValue(RtmpUrlProperty, value); }
get { return (string)GetValue(RtmpUrlProperty); }
}
public static readonly BindableProperty StatusConnectedProperty =
BindableProperty.Create(nameof(StatusConnected), typeof(bool), typeof(Yasea), false,
propertyChanged: (bindable, oldValue, newValue) => ((Yasea)bindable).SetStatusConnected());
public void SetStatusConnected()
{
}
public bool StatusConnected
{
set { SetValue(StatusConnectedProperty, value); }
get { return (bool)GetValue(StatusConnectedProperty); }
}
#region eventos
public event EventHandler StartPublishRequested;
public void StartPublish()
{
StartPublishRequested?.Invoke(this, EventArgs.Empty);
}
public event EventHandler StopPublishRequest;
public void StopPublish()
{
StopPublishRequest?.Invoke(this, EventArgs.Empty);
}
public event EventHandler CameraSwitchRequest;
public void CameraSwitch()
{
CameraSwitchRequest?.Invoke(this, EventArgs.Empty);
}
#endregion
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment