So i tried to use the Fuse Library to Toast a message
Includes:
using Uno;
using Uno.Collections;
using Fuse;
using Fuse.Scripting;
using Fuse.Reactive;
using global::Android.android.media;
using global::Android.android.app;
using global::Android.android.widget;
using global::Android.android.content;
CODE SNIPPET:
object ShowToast(Context c, object[] args){
var context = Activity.GetAppActivity();
var text = "This is a Toast";
var duration = Toast.LENGTH_SHORT;
var toast = Toast.makeText(context, text, duration);
toast.show();
}
ERROR:
E3109: 'Context' is ambiguous
Candidates are: Fuse.Scripting.Context
Android.android.content.Context
EVEN TRIED THIS
var context = getApplicationContext();
instead of
var context = Activity.GetAppActivity();
Still the same error persist
Can anybody help?
Thanks!