dotnet / dotnet/macios

Incorrect definition of GKLocalPlayer.AuthenticateHandler: missing nullables

Open
#24,480 1 comment 0 reactions 0 assignees View on GitHub
api-bindings
Dominant language
C#
Stars
2.9k
Forks
576
Avg merge
2d 13h
Merged PRs (30d)
96

Description

### Apple platform

iOS

### Framework version

net10.0-*

### Affected platform version

ios SDK 26.2.10191/10.0.100

### Description

The definition of `AuthenticateHandler` in GKLocalPlayer.cs is incorrect:

```c#
public virtual Action? AuthenticateHandler
```

Given the [doc](https://developer.apple.com/documentation/gamekit/gklocalplayer/authenticatehandler?language=objc) both UIViewController and NSError are nullable.

So it should be:
```C#
public virtual Action? AuthenticateHandler
```

### Steps to Reproduce

N/A

### Did you find any workaround?

Ignore the warning.

### Build logs

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.