Default constructor not found for type MyApp.IFirebaseEvents

Anonymous
2021-10-23T19:03:37.53+00:00

Hi,

Why i am getting this when trying when trying to use Firebase Analytics with Xamarin Forms?

Default constructor not found for type MyApp.IFirebaseEvents

my interface is like this:

using System;
using System.Collections.Generic;
using System.Text;

namespace MyApp
{
    public interface IFirebaseEvents
    {
        void LogEvent(string eventId);
        void LogEvent(string eventId, string paramName, string value);
        void LogEvent(string eventId, IDictionary<string, string> parameters);
        void ScreenView(string screen);
    }
}
Developer technologies | .NET | Xamarin
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

1 answer

Sort by: Most helpful
  1. John Hair 371 Reputation points
    2021-10-24T06:21:33.863+00:00

    The error message implies you ar trying to use an interface like a class. Can you show where you are trying to use the interface?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.