Skip to content

Instantly share code, notes, and snippets.

View dtaylorus's full-sized avatar

David Taylor dtaylorus

View GitHub Profile
@dtaylorus
dtaylorus / FacebookApiDefinition.cs
Last active April 20, 2023 09:53
Facebook CoreKit C# bindings
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using CoreGraphics;
using CoreMedia;
using ObjCRuntime;
using UIKit;
namespace Facebook.ApiDefinition
{
@dtaylorus
dtaylorus / XamarinAdMobHack.cs
Last active May 9, 2022 20:27
Workaround for broken interstitial and rewarded ad callbacks in Xamarin.GooglePlayServices.Ads.
using System;
using Android.Runtime;
namespace Android.Gms.Ads.Hack
{
public abstract class InterstitialAdLoadCallback : global::Android.Gms.Ads.Interstitial.InterstitialAdLoadCallback
{
private static Delegate cb_onAdLoaded;
private static Delegate GetOnAdLoadedHandler()
@dtaylorus
dtaylorus / LocalizableString.cs
Last active November 20, 2020 21:19
LocalizableString members
internal static class LocalizableString
{
internal static CultureInfo CurrentCulture { get; }
internal static LineBreakMode LineBreakMode { get; }
internal static string Localize(
this string localizable);
internal static string WillLocalize(