Google Drive ApI V3 Migration for Xamrin.Android

Please let me know how to migrate to Google Drive API v2 or V3. I found all the answers for the migration related to java.I could't find the equivalent xamarin nuget package for the Google Drive API v2 or V3.

I have tried with this Xamarin.GooglePlayServices.Drive nuget package but in this all the drive api's are depricated.

Can anyone tried google drive integration in xamarin.Please help me.This is my try

GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DefaultSignIn)
            .RequestEmail()
            .Build();

var mGoogleApiClient = new GoogleApiClient.Builder(this)
            .EnableAutoManage(this /* FragmentActivity */, this /* OnConnectionFailedListener */)
            .AddApi(Auth.GOOGLE_SIGN_IN_API, gso)
            .Build();


 MetadataChangeSet changeSet = new MetadataChangeSet.Builder()
        .SetTitle(_backupFolderName)
        .Build();
    IDriveFolderDriveFolderResult result;
    try
    {
        result = await DriveClass.DriveApi.GetRootFolder(_googleApiClient)
            .CreateFolderAsync(_googleApiClient, changeSet);
    }
    catch (Exception)
    {
        return null;
    }
Sign In or Register to comment.