using Android.Content; using Android.Database; using System; using Huawei.Agconnect.Config; namespace Shared.Droid.JPush { [ContentProvider(new string[] { "Shared.Droid.JPush.HmsContentProvider" }, Enabled = true, Exported = false, Name = "Shared.Droid.JPush.HmsContentProvider")] class HmsContentProvider : ContentProvider { public override int Delete(Android.Net.Uri uri, string selection, string[] selectionArgs) { throw new NotImplementedException(); } public override string GetType(Android.Net.Uri uri) { throw new NotImplementedException(); } public override Android.Net.Uri Insert(Android.Net.Uri uri, ContentValues values) { throw new NotImplementedException(); } public override bool OnCreate() { try { AGConnectServicesConfig config = AGConnectServicesConfig.FromContext(Context); config.OverlayWith(new HmsLazyInputStream(Context)); } catch (Exception e) { } return false; } public override ICursor Query(Android.Net.Uri uri, string[] projection, string selection, string[] selectionArgs, string sortOrder) { throw new NotImplementedException(); } public override int Update(Android.Net.Uri uri, ContentValues values, string selection, string[] selectionArgs) { throw new NotImplementedException(); } } }