-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Description
Type of issue
Code doesn't work
Description
events.AddAndroid(android =>
{
android.OnCreate((activity, bundle) =>
{
var action = activity.Intent?.Action;
var data = activity.Intent?.Data?.ToString();
if (action == Android.Content.Intent.ActionView && data is not null)
{
activity.Finish();
System.Threading.Tasks.Task.Run(() => HandleAppLink(data));
}
});
});
AddAndroid
'type' does not contain a definition for 'name' and no accessible extension method 'name' accepting a first argument of type 'type' could be found (are you missing a using directive or an assembly reference?).
Page URL
Content source URL
https://github.com/dotnet/docs/blob/main/docs/csharp/language-reference/compiler-messages/cs1061.md
Document Version Independent Id
df4263c1-477a-3c32-9abe-3fcb850e6c1b
Article author
Metadata
events.AddAndroid(android =>
{
android.OnCreate((activity, bundle) =>
{
var action = activity.Intent?.Action;
var data = activity.Intent?.Data?.ToString();
if (action == Android.Content.Intent.ActionView && data is not null)
{
activity.Finish();
System.Threading.Tasks.Task.Run(() => HandleAppLink(data));
}
});
});
AddAndroid
'type' does not contain a definition for 'name' and no accessible extension method 'name' accepting a first argument of type 'type' could be found (are you missing a using directive or an assembly reference?).