Skip to content

Instantly share code, notes, and snippets.

🤓
Focusing

Sümeyya Tuğçe Arar sumeyyaarar

🤓
Focusing
View GitHub Profile
View BiometricService.Droid.cs
[assembly: Dependency(typeof(BiometricService))]
namespace BiometricApp.Droid
{
public class BiometricService : IBiometricService
{
private BiometricPrompt biometricPrompt;
private BiometricPrompt.PromptInfo promptInfo;
public BiometricManager manager = BiometricManager.From(MainActivity.CurrentActivity);
public bool IsDeviceSupportBiometry()
{
View BiometricService.iOS.cs
[assembly: Dependency(typeof(BiometricService))]
namespace BiometricApp.iOS
{
public class BiometricService : IBiometricService
{
LAContext context = new LAContext();
public async Task<bool> LoginWithBiometrics()
{
context.LocalizedCancelTitle = "I don't want it.";
View DummyData.cs
public class DummyData
{
public List<MyModel> MyList { get; set; }
public DummyData()
{
MyList.AddRange(new List<MyModel> {
new MyModel { Title="Quetzal",ImageUrl= "https://3st5z214fl815gruv3wvecis-wpengine.netdna-ssl.com/wp-content/uploads/2019/04/CR-Quetzal_sized.jpg" },
new MyModel { Title="Quetzal",ImageUrl= "https://3st5z214fl815gruv3wvecis-wpengine.netdna-ssl.com/wp-content/uploads/2019/04/CR-Quetzal_sized.jpg" },
new MyModel { Title="Quetzal",ImageUrl= "https://3st5z214fl815gruv3wvecis-wpengine.netdna-ssl.com/wp-content/uploads/2019/04/CR-Quetzal_sized.jpg" },
new MyModel { Title="Quetzal",ImageUrl= "https://3st5z214fl815gruv3wvecis-wpengine.netdna-ssl.com/wp-content/uploads/2019/04/CR-Quetzal_sized.jpg" },
View ios_spec_namespace.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>iOS Platform Spec Snippet</Title>
<Author>Sumeyya Tugce Arar</Author>
<Description>Xaml namespace</Description><Author>Myself</Author>
<Shortcut>iosSpec</Shortcut>
</Header>
<Snippet>
View android_spec_namespace.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Android Platform Spec Snippet</Title>
<Author>Sumeyya Tugce Arar</Author>
<Description>Xaml namespace</Description><Author>Myself</Author>
<Shortcut>andSpec</Shortcut>
</Header>
<Snippet>
View bindable_property.snippet
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>Bindable Snippet</Title>
<Author>Sumeyya Tugce Arar</Author>
<Shortcut>bindable</Shortcut>
</Header>
<Snippet>
<Code Language="CSHARP">
View command_with_path.xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MyProject.Views.MyPage"
xmlns:vm="clr-namespace:MyProject.ViewModels"
x:Name="myPage">
<ContentPage.BindingContext>
<vm:MyPageViewModel/>
</ContentPage.BindingContext>
<ContentPage.Content>
View LinkPresentationPage.xaml
<StackLayout Margin="20,40" Orientation="Vertical" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand">
<controls:LPView Url="https://www.thegamer.com/assassins-creed-odyssey-things-previous-players-noticed/"/>
<controls:LPView Url="https://www.thegamer.com/dungeons-dragons-pro-tips-building-powerful-characer/"/>
<controls:LPView Url="https://www.thegamer.com/henry-cavill-the-witcher-sword-image/"/>
</StackLayout>
View LPView.cs
public class LPView:View
{
public LPView()
{
this.VerticalOptions = LayoutOptions.FillAndExpand;
this.HorizontalOptions = LayoutOptions.FillAndExpand;
}
public static readonly BindableProperty UrlProperty =
BindableProperty.Create("Url", typeof(string), typeof(LPView), "");
View LPViewRenderer.cs
[assembly: ExportRenderer(typeof(LPView), typeof(LPViewRenderer))]
namespace XFLPApp.iOS.CustomRenderers
{
public class LPViewRenderer : ViewRenderer<LPView, LPLinkView>
{
protected override void OnElementChanged(ElementChangedEventArgs<LPView> e)
{
base.OnElementChanged(e);
if (e.OldElement != null || Element == null) return;
if (e.NewElement != null)
You can’t perform that action at this time.