Files
Panayot Cankov 1236f66f44 Add npm script that generates ios .d.ts-es from the tests app
Less than 30 erros left, let's hope it still works

Added lib.*.d.ts from typescript, removed lib and dom stuff, added by hand XHR, alert etc. .d.ts-es for polyfills

Roll back some changes involved in separating UIEvent for dom and ios

Test combined dts-es will now use lib, while internally we will not to avoid UIEvent conflict with dom stuff
2016-08-29 09:58:17 +03:00

76 lines
1.9 KiB
TypeScript

declare class RPPreviewViewController extends UIViewController {
static alloc(): RPPreviewViewController; // inherited from NSObject
static new(): RPPreviewViewController; // inherited from NSObject
previewControllerDelegate: RPPreviewViewControllerDelegate;
}
interface RPPreviewViewControllerDelegate extends NSObjectProtocol {
previewControllerDidFinish?(previewController: RPPreviewViewController): void;
previewControllerDidFinishWithActivityTypes?(previewController: RPPreviewViewController, activityTypes: NSSet<string>): void;
}
declare var RPPreviewViewControllerDelegate: {
prototype: RPPreviewViewControllerDelegate;
};
declare const enum RPRecordingErrorCode {
Unknown = -5800,
UserDeclined = -5801,
Disabled = -5802,
FailedToStart = -5803,
Failed = -5804,
InsufficientStorage = -5805,
Interrupted = -5806,
ContentResize = -5807
}
declare var RPRecordingErrorDomain: string;
declare class RPScreenRecorder extends NSObject {
static alloc(): RPScreenRecorder; // inherited from NSObject
static new(): RPScreenRecorder; // inherited from NSObject
static sharedRecorder(): RPScreenRecorder;
/* readonly */ available: boolean;
delegate: RPScreenRecorderDelegate;
/* readonly */ microphoneEnabled: boolean;
/* readonly */ recording: boolean;
discardRecordingWithHandler(handler: () => void): void;
startRecordingWithMicrophoneEnabledHandler(microphoneEnabled: boolean, handler: (p1: NSError) => void): void;
stopRecordingWithHandler(handler: (p1: RPPreviewViewController, p2: NSError) => void): void;
}
interface RPScreenRecorderDelegate extends NSObjectProtocol {
screenRecorderDidChangeAvailability?(screenRecorder: RPScreenRecorder): void;
screenRecorderDidStopRecordingWithErrorPreviewViewController?(screenRecorder: RPScreenRecorder, error: NSError, previewViewController: RPPreviewViewController): void;
}
declare var RPScreenRecorderDelegate: {
prototype: RPScreenRecorderDelegate;
};