Skip to content

Instantly share code, notes, and snippets.

👨‍💻
Works on My Device 📱

Thiago Bertuzzi TBertuzzi

👨‍💻
Works on My Device 📱
Block or report user

Report or block TBertuzzi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Startup.cs
using System;
using ExemploShiny.Delegates;
using Microsoft.Extensions.DependencyInjection;
using Shiny;
namespace ExemploShiny
{
public class Startup : ShinyStartup
{
public override void ConfigureServices(IServiceCollection services)
View LocationDelegates.cs
using System;
using System.Threading.Tasks;
using Shiny.Locations;
namespace ExemploShiny.Delegates
{
public class LocationDelegates : IGeofenceDelegate, IGpsDelegate
{
public Task OnReading(IGpsReading reading)
{
View Startup.cs
namespace ExemploShiny
{
public class Startup : ShinyStartup
{
public override void ConfigureServices(IServiceCollection services)
{
services.UseGps();
services.UseMotionActivity();
}
}
View AppDelegate.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Foundation;
using UIKit;
namespace ExemploShiny.iOS
{
[Register("AppDelegate")]
public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate
View MainActivity.cs
using System;
using Android.App;
using Android.Content.PM;
using Android.Runtime;
using Android.Views;
using Android.Widget;
using Android.OS;
namespace ExemploShiny.Droid
View ShinyApplication.cs
using System;
using Android.App;
using Android.Runtime;
namespace ExemploShiny.Droid
{
[Application]
public class ShinyApplication : Shiny.ShinyAndroidApplication<Startup>
{
public ShinyApplication(IntPtr handle, JniHandleOwnership transfer) : base(handle, transfer)
View Startup.cs
using System;
using Microsoft.Extensions.DependencyInjection;
using Shiny;
namespace ExemploShiny
{
public class Startup : ShinyStartup
{
public override void ConfigureServices(IServiceCollection services)
{
@TBertuzzi
TBertuzzi / MainViewModel.cs
Last active Nov 11, 2019
EventAggregator
View MainViewModel.cs
string _loadingText = "Carregando...";
public string LoadingText
{
get { return _loadingText; }
set { SetProperty(ref _loadingText, value); }
}
protected MainViewModel(IEventAggregator ea)
{
View RssService.cs
namespace PrismPolly.Services
{
public class RssService : IRssService
{
IEventAggregator _eventAggregator;
readonly INetworkService _networkService;
public RssService(IEventAggregator ea)
View MessageSentEvent.cs
using System;
using Prism.Events;
namespace PrismPolly.Message
{
public class MessageSentEvent : PubSubEvent<string>
{
}
}
You can’t perform that action at this time.