Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/types-android/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/types-android",
"version": "8.4.0",
"version": "8.5.0",
"description": "NativeScript Types for Android.",
"homepage": "https://nativescript.org",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/types-ios/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nativescript/types-ios",
"version": "8.4.0",
"version": "8.5.0",
"description": "NativeScript Types for iOS.",
"homepage": "https://nativescript.org",
"repository": {
Expand Down
1 change: 0 additions & 1 deletion packages/types-ios/src/lib/ios/ios.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@
/// <reference path="objc-x86_64/objc!PencilKit.d.ts" />
/// <reference path="objc-x86_64/objc!Photos.d.ts" />
/// <reference path="objc-x86_64/objc!PhotosUI.d.ts" />
/// <reference path="objc-x86_64/objc!Pods_iostypingsprj.d.ts" />
/// <reference path="objc-x86_64/objc!ProximityReader.d.ts" />
/// <reference path="objc-x86_64/objc!PushKit.d.ts" />
/// <reference path="objc-x86_64/objc!PushToTalk.d.ts" />
Expand Down
4 changes: 4 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!GameKit.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,11 @@ declare class GKMatchmaker extends NSObject {

startBrowsingForNearbyPlayersWithReachableHandler(reachableHandler: (p1: string, p2: boolean) => void): void;

startGroupActivityWithPlayerHandler(handler: (p1: GKPlayer) => void): void;

stopBrowsingForNearbyPlayers(): void;

stopGroupActivity(): void;
}

declare class GKMatchmakerViewController extends UINavigationController {
Expand Down
110 changes: 110 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!Intents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,62 @@ declare const enum INAmountType {
StatementBalance = 6
}

declare class INAnswerCallIntent extends INIntent {

static alloc(): INAnswerCallIntent; // inherited from NSObject

static new(): INAnswerCallIntent; // inherited from NSObject

constructor(o: { audioRoute: INCallAudioRoute; callIdentifier: string; });

initWithAudioRouteCallIdentifier(audioRoute: INCallAudioRoute, callIdentifier: string): this;
}

interface INAnswerCallIntentHandling extends NSObjectProtocol {

confirmAnswerCallCompletion?(intent: INAnswerCallIntent, completion: (p1: INAnswerCallIntentResponse) => void): void;

handleAnswerCallCompletion(intent: INAnswerCallIntent, completion: (p1: INAnswerCallIntentResponse) => void): void;
}
declare var INAnswerCallIntentHandling: {

prototype: INAnswerCallIntentHandling;
};

declare var INAnswerCallIntentIdentifier: string;

declare class INAnswerCallIntentResponse extends INIntentResponse {

static alloc(): INAnswerCallIntentResponse; // inherited from NSObject

static new(): INAnswerCallIntentResponse; // inherited from NSObject

callRecords: NSArray<INCallRecord>;

readonly code: INAnswerCallIntentResponseCode;

constructor(o: { code: INAnswerCallIntentResponseCode; userActivity: NSUserActivity; });

initWithCodeUserActivity(code: INAnswerCallIntentResponseCode, userActivity: NSUserActivity): this;
}

declare const enum INAnswerCallIntentResponseCode {

Unspecified = 0,

Ready = 1,

ContinueInApp = 2,

InProgress = 3,

Success = 4,

Failure = 5,

FailureRequiringAppLaunch = 6
}

declare class INAppendToNoteIntent extends INIntent {

static alloc(): INAppendToNoteIntent; // inherited from NSObject
Expand Down Expand Up @@ -3150,6 +3206,60 @@ declare const enum INGetVisualCodeIntentResponseCode {
FailureAppConfigurationRequired = 7
}

declare class INHangUpCallIntent extends INIntent {

static alloc(): INHangUpCallIntent; // inherited from NSObject

static new(): INHangUpCallIntent; // inherited from NSObject

constructor(o: { callIdentifier: string; });

initWithCallIdentifier(callIdentifier: string): this;
}

interface INHangUpCallIntentHandling extends NSObjectProtocol {

confirmHangUpCallCompletion?(intent: INHangUpCallIntent, completion: (p1: INHangUpCallIntentResponse) => void): void;

handleHangUpCallCompletion(intent: INHangUpCallIntent, completion: (p1: INHangUpCallIntentResponse) => void): void;
}
declare var INHangUpCallIntentHandling: {

prototype: INHangUpCallIntentHandling;
};

declare var INHangUpCallIntentIdentifier: string;

declare class INHangUpCallIntentResponse extends INIntentResponse {

static alloc(): INHangUpCallIntentResponse; // inherited from NSObject

static new(): INHangUpCallIntentResponse; // inherited from NSObject

readonly code: INHangUpCallIntentResponseCode;

constructor(o: { code: INHangUpCallIntentResponseCode; userActivity: NSUserActivity; });

initWithCodeUserActivity(code: INHangUpCallIntentResponseCode, userActivity: NSUserActivity): this;
}

declare const enum INHangUpCallIntentResponseCode {

Unspecified = 0,

Ready = 1,

InProgress = 2,

Success = 3,

Failure = 4,

FailureRequiringAppLaunch = 5,

FailureNoCallToHangUp = 6
}

declare class INImage extends NSObject implements NSCopying, NSSecureCoding {

static alloc(): INImage; // inherited from NSObject
Expand Down
69 changes: 69 additions & 0 deletions packages/types-ios/src/lib/ios/objc-x86_64/objc!Matter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7250,6 +7250,8 @@ declare class MTRBaseClusterTestCluster extends MTRCluster {

static readAttributeVendorIdWithAttributeCacheEndpointQueueCompletionHandler(attributeCacheContainer: MTRAttributeCacheContainer, endpoint: number, queue: NSObject, completionHandler: (p1: number, p2: NSError) => void): void;

static readAttributeWriteOnlyInt8uWithAttributeCacheEndpointQueueCompletionHandler(attributeCacheContainer: MTRAttributeCacheContainer, endpoint: number, queue: NSObject, completionHandler: (p1: number, p2: NSError) => void): void;

constructor(o: { device: MTRBaseDevice; endpoint: number; queue: NSObject; });

initWithDeviceEndpointQueue(device: MTRBaseDevice, endpoint: number, queue: NSObject): this;
Expand Down Expand Up @@ -7426,6 +7428,8 @@ declare class MTRBaseClusterTestCluster extends MTRCluster {

readAttributeVendorIdWithCompletionHandler(completionHandler: (p1: number, p2: NSError) => void): void;

readAttributeWriteOnlyInt8uWithCompletionHandler(completionHandler: (p1: number, p2: NSError) => void): void;

simpleStructEchoRequestWithParamsCompletionHandler(params: MTRTestClusterClusterSimpleStructEchoRequestParams, completionHandler: (p1: MTRTestClusterClusterSimpleStructResponseParams, p2: NSError) => void): void;

subscribeAttributeAcceptedCommandListWithMinIntervalMaxIntervalParamsSubscriptionEstablishedReportHandler(minInterval: number, maxInterval: number, params: MTRSubscribeParams, subscriptionEstablishedHandler: () => void, reportHandler: (p1: NSArray<any>, p2: NSError) => void): void;
Expand Down Expand Up @@ -7600,6 +7604,8 @@ declare class MTRBaseClusterTestCluster extends MTRCluster {

subscribeAttributeVendorIdWithMinIntervalMaxIntervalParamsSubscriptionEstablishedReportHandler(minInterval: number, maxInterval: number, params: MTRSubscribeParams, subscriptionEstablishedHandler: () => void, reportHandler: (p1: number, p2: NSError) => void): void;

subscribeAttributeWriteOnlyInt8uWithMinIntervalMaxIntervalParamsSubscriptionEstablishedReportHandler(minInterval: number, maxInterval: number, params: MTRSubscribeParams, subscriptionEstablishedHandler: () => void, reportHandler: (p1: number, p2: NSError) => void): void;

testAddArgumentsWithParamsCompletionHandler(params: MTRTestClusterClusterTestAddArgumentsParams, completionHandler: (p1: MTRTestClusterClusterTestAddArgumentsResponseParams, p2: NSError) => void): void;

testComplexNullableOptionalRequestWithParamsCompletionHandler(params: MTRTestClusterClusterTestComplexNullableOptionalRequestParams, completionHandler: (p1: MTRTestClusterClusterTestComplexNullableOptionalResponseParams, p2: NSError) => void): void;
Expand Down Expand Up @@ -7975,6 +7981,10 @@ declare class MTRBaseClusterTestCluster extends MTRCluster {
writeAttributeVendorIdWithValueCompletionHandler(value: number, completionHandler: (p1: NSError) => void): void;

writeAttributeVendorIdWithValueParamsCompletionHandler(value: number, params: MTRWriteParams, completionHandler: (p1: NSError) => void): void;

writeAttributeWriteOnlyInt8uWithValueCompletionHandler(value: number, completionHandler: (p1: NSError) => void): void;

writeAttributeWriteOnlyInt8uWithValueParamsCompletionHandler(value: number, params: MTRWriteParams, completionHandler: (p1: NSError) => void): void;
}

declare class MTRBaseClusterThermostat extends MTRCluster {
Expand Down Expand Up @@ -9470,6 +9480,8 @@ declare class MTRBaseDevice extends NSObject {

invokeCommandWithEndpointIdClusterIdCommandIdCommandFieldsTimedInvokeTimeoutClientQueueCompletion(endpointId: number, clusterId: number, commandId: number, commandFields: any, timeoutMs: number, clientQueue: NSObject, completion: (p1: NSArray<NSDictionary<string, any>>, p2: NSError) => void): void;

openCommissioningWindowWithSetupPasscodeDiscriminatorDurationQueueCompletion(setupPasscode: number, discriminator: number, duration: number, queue: NSObject, completion: (p1: MTRSetupPayload, p2: NSError) => void): void;

readAttributeWithEndpointIdClusterIdAttributeIdParamsClientQueueCompletion(endpointId: number, clusterId: number, attributeId: number, params: MTRReadParams, clientQueue: NSObject, completion: (p1: NSArray<NSDictionary<string, any>>, p2: NSError) => void): void;

subscribeAttributeWithEndpointIdClusterIdAttributeIdMinIntervalMaxIntervalParamsClientQueueReportHandlerSubscriptionEstablished(endpointId: number, clusterId: number, attributeId: number, minInterval: number, maxInterval: number, params: MTRSubscribeParams, clientQueue: NSObject, reportHandler: (p1: NSArray<NSDictionary<string, any>>, p2: NSError) => void, subscriptionEstablishedHandler: () => void): void;
Expand Down Expand Up @@ -10154,6 +10166,8 @@ declare const enum MTRClusterAttributeIDType {

PulseWidthModulationAttributeClusterRevisionID = 65533,

DescriptorAttributeDeviceTypeListID = 0,

DescriptorAttributeDeviceListID = 0,

DescriptorAttributeServerListID = 1,
Expand Down Expand Up @@ -12228,6 +12242,8 @@ declare const enum MTRClusterAttributeIDType {

TestClusterAttributeNullableRangeRestrictedInt16sID = 16425,

TestClusterAttributeWriteOnlyInt8uID = 16426,

TestClusterAttributeGeneratedCommandListID = 65528,

TestClusterAttributeAcceptedCommandListID = 65529,
Expand Down Expand Up @@ -15945,6 +15961,8 @@ declare class MTRClusterTestCluster extends MTRCluster {

readAttributeVendorIdWithParams(params: MTRReadParams): NSDictionary<string, any>;

readAttributeWriteOnlyInt8uWithParams(params: MTRReadParams): NSDictionary<string, any>;

simpleStructEchoRequestWithParamsExpectedValuesExpectedValueIntervalCompletionHandler(params: MTRTestClusterClusterSimpleStructEchoRequestParams, expectedDataValueDictionaries: NSArray<NSDictionary<string, any>> | NSDictionary<string, any>[], expectedValueIntervalMs: number, completionHandler: (p1: MTRTestClusterClusterSimpleStructResponseParams, p2: NSError) => void): void;

testAddArgumentsWithParamsExpectedValuesExpectedValueIntervalCompletionHandler(params: MTRTestClusterClusterTestAddArgumentsParams, expectedDataValueDictionaries: NSArray<NSDictionary<string, any>> | NSDictionary<string, any>[], expectedValueIntervalMs: number, completionHandler: (p1: MTRTestClusterClusterTestAddArgumentsResponseParams, p2: NSError) => void): void;
Expand Down Expand Up @@ -16322,6 +16340,10 @@ declare class MTRClusterTestCluster extends MTRCluster {
writeAttributeVendorIdWithValueExpectedValueInterval(dataValueDictionary: NSDictionary<string, any>, expectedValueIntervalMs: number): void;

writeAttributeVendorIdWithValueExpectedValueIntervalParams(dataValueDictionary: NSDictionary<string, any>, expectedValueIntervalMs: number, params: MTRWriteParams): void;

writeAttributeWriteOnlyInt8uWithValueExpectedValueInterval(dataValueDictionary: NSDictionary<string, any>, expectedValueIntervalMs: number): void;

writeAttributeWriteOnlyInt8uWithValueExpectedValueIntervalParams(dataValueDictionary: NSDictionary<string, any>, expectedValueIntervalMs: number, params: MTRWriteParams): void;
}

declare class MTRClusterThermostat extends MTRCluster {
Expand Down Expand Up @@ -17805,6 +17827,19 @@ declare class MTRDescriptorClusterDeviceType extends NSObject implements NSCopyi
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}

declare class MTRDescriptorClusterDeviceTypeStruct extends NSObject implements NSCopying {

static alloc(): MTRDescriptorClusterDeviceTypeStruct; // inherited from NSObject

static new(): MTRDescriptorClusterDeviceTypeStruct; // inherited from NSObject

revision: number;

type: number;

copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}

declare class MTRDevice extends NSObject {

static alloc(): MTRDevice; // inherited from NSObject
Expand All @@ -17817,6 +17852,8 @@ declare class MTRDevice extends NSObject {

invokeCommandWithEndpointIDClusterIDCommandIDCommandFieldsExpectedValuesExpectedValueIntervalTimedInvokeTimeoutClientQueueCompletion(endpointID: number, clusterID: number, commandID: number, commandFields: any, expectedValues: NSArray<NSDictionary<string, any>> | NSDictionary<string, any>[], expectedValueInterval: number, timeout: number, clientQueue: NSObject, completion: (p1: NSArray<NSDictionary<string, any>>, p2: NSError) => void): void;

openCommissioningWindowWithSetupPasscodeDiscriminatorDurationQueueCompletion(setupPasscode: number, discriminator: number, duration: number, queue: NSObject, completion: (p1: MTRSetupPayload, p2: NSError) => void): void;

readAttributeWithEndpointIDClusterIDAttributeIDParams(endpointID: number, clusterID: number, attributeID: number, params: MTRReadParams): NSDictionary<string, any>;

setDelegateQueue(delegate: MTRDeviceDelegate, queue: NSObject): void;
Expand Down Expand Up @@ -17898,6 +17935,8 @@ declare class MTRDeviceController extends NSObject {

setPairingDelegateQueue(delegate: MTRDevicePairingDelegate, queue: NSObject): void;

setupCommissioningSessionWithPayloadNewNodeIDError(payload: MTRSetupPayload, newNodeID: number): boolean;

shutdown(): void;

stopDevicePairingError(deviceID: number): boolean;
Expand Down Expand Up @@ -20875,6 +20914,13 @@ declare class MTRMediaPlaybackClusterStopPlaybackParams extends NSObject impleme
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}

declare const enum MTRMediaPlaybackFeature {

AdvancedSeek = 1,

VariableSpeed = 2
}

declare const enum MTRMediaPlaybackPlaybackState {

Playing = 0,
Expand Down Expand Up @@ -22729,8 +22775,12 @@ declare class MTRSetupPayload extends NSObject implements NSSecureCoding {

static generateRandomPIN(): number;

static generateRandomSetupPasscode(): number;

static new(): MTRSetupPayload; // inherited from NSObject

static setupPayloadWithOnboardingPayloadError(onboardingPayload: string): MTRSetupPayload;

commissioningFlow: MTRCommissioningFlow;

discriminator: number;
Expand All @@ -22753,13 +22803,19 @@ declare class MTRSetupPayload extends NSObject implements NSSecureCoding {

constructor(o: { coder: NSCoder; }); // inherited from NSCoding

constructor(o: { setupPasscode: number; discriminator: number; });

encodeWithCoder(coder: NSCoder): void;

getAllOptionalVendorData(): NSArray<MTROptionalQRCodeInfo>;

initWithCoder(coder: NSCoder): this;

initWithSetupPasscodeDiscriminator(setupPasscode: number, discriminator: number): this;

manualEntryCode(): string;

qrCodeString(): string;
}

declare var MTRSignedIntegerValueType: string;
Expand Down Expand Up @@ -22916,6 +22972,19 @@ declare class MTRSwitchClusterSwitchLatchedEvent extends NSObject implements NSC
copyWithZone(zone: interop.Pointer | interop.Reference<any>): any;
}

declare const enum MTRSwitchFeature {

LatchingSwitch = 1,

MomentarySwitch = 2,

MomentarySwitchRelease = 4,

MomentarySwitchLongPress = 8,

MomentarySwitchMultiPress = 16
}

declare class MTRTargetNavigatorClusterNavigateTargetParams extends NSObject implements NSCopying {

static alloc(): MTRTargetNavigatorClusterNavigateTargetParams; // inherited from NSObject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ declare class MPSGraph extends NSObject {

runWithMTLCommandQueueFeedsTargetTensorsTargetOperations(commandQueue: MTLCommandQueue, feeds: NSDictionary<MPSGraphTensor, MPSGraphTensorData>, targetTensors: NSArray<MPSGraphTensor> | MPSGraphTensor[], targetOperations: NSArray<MPSGraphOperation> | MPSGraphOperation[]): NSDictionary<MPSGraphTensor, MPSGraphTensorData>;

sampleGridWithSourceTensorCoordinateTensorLayoutNormalizeCoordinatesRelativeCoordinatesAlignCornersPaddingModeNearestRoundingModeConstantValueName(source: MPSGraphTensor, coordinates: MPSGraphTensor, layout: MPSGraphTensorNamedDataLayout, normalizeCoordinates: boolean, relativeCoordinates: boolean, alignCorners: boolean, paddingMode: MPSGraphPaddingMode, nearestRoundingMode: MPSGraphResizeNearestRoundingMode, constantValue: number, name: string): MPSGraphTensor;

sampleGridWithSourceTensorCoordinateTensorLayoutNormalizeCoordinatesRelativeCoordinatesAlignCornersPaddingModeSamplingModeConstantValueName(source: MPSGraphTensor, coordinates: MPSGraphTensor, layout: MPSGraphTensorNamedDataLayout, normalizeCoordinates: boolean, relativeCoordinates: boolean, alignCorners: boolean, paddingMode: MPSGraphPaddingMode, samplingMode: MPSGraphResizeMode, constantValue: number, name: string): MPSGraphTensor;

scatterAlongAxisTensorWithDataTensorUpdatesTensorIndicesTensorModeName(axisTensor: MPSGraphTensor, dataTensor: MPSGraphTensor, updatesTensor: MPSGraphTensor, indicesTensor: MPSGraphTensor, mode: MPSGraphScatterMode, name: string): MPSGraphTensor;

scatterAlongAxisTensorWithUpdatesTensorIndicesTensorShapeModeName(axisTensor: MPSGraphTensor, updatesTensor: MPSGraphTensor, indicesTensor: MPSGraphTensor, shape: NSArray<number> | number[], mode: MPSGraphScatterMode, name: string): MPSGraphTensor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ declare class NativeScriptUtils extends NSObject {

static getImageDataFormatQuality(image: UIImage, format: string, quality: number): NSData;

static getSystemFontWeightItalicSymbolicTraits(size: number, weight: number, italic: boolean, symbolicTraits: number): UIFont;
static getSystemFontWeightItalicSymbolicTraits(size: number, weight: number, italic: boolean, symbolicTraits: UIFontDescriptorSymbolicTraits): UIFont;

static new(): NativeScriptUtils; // inherited from NSObject

Expand Down

This file was deleted.

Loading