Skip to content

CBCentralManager.ScanForPeripherals: peripheralUuids should be nullable #22610

Open
@softlion

Description

@softlion

Apple platform

iOS

Framework version

net9.0-*

Affected platform version

all

Description

CBCentralManager.ScanForPeripherals: peripheralUuids is not nullable.

But according to the apple doc, it can be null:
https://developer.apple.com/documentation/corebluetooth/cbcentralmanager/scanforperipherals(withservices:options:)

.NET source:

public void ScanForPeripherals (CBUUID [] peripheralUuids, PeripheralScanningOptions? options = null)

Steps to Reproduce

It is an API definition, there is nothing to repro.

Did you find any workaround?

yes, use "null!".

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions