Files
Panayot Cankov 299203901e Move platform .d.ts-es to separate plugin folder
Add dev-setup to figure out links

Update development workflow

Update package.json and dts-ios

Update the iOS declarations

grunt is now fine
2016-09-26 11:53:39 +03:00

112 lines
3.7 KiB
TypeScript

declare const enum AVKitError {
Unknown = -1000,
PictureInPictureStartFailed = -1001
}
declare var AVKitErrorDomain: string;
declare class AVPictureInPictureController extends NSObject {
static alloc(): AVPictureInPictureController; // inherited from NSObject
static isPictureInPictureSupported(): boolean;
static new(): AVPictureInPictureController; // inherited from NSObject
static pictureInPictureButtonStartImageCompatibleWithTraitCollection(traitCollection: UITraitCollection): UIImage;
static pictureInPictureButtonStopImageCompatibleWithTraitCollection(traitCollection: UITraitCollection): UIImage;
delegate: AVPictureInPictureControllerDelegate;
/* readonly */ pictureInPictureActive: boolean;
/* readonly */ pictureInPicturePossible: boolean;
/* readonly */ pictureInPictureSuspended: boolean;
/* readonly */ playerLayer: AVPlayerLayer;
constructor(o: { playerLayer: AVPlayerLayer; });
initWithPlayerLayer(playerLayer: AVPlayerLayer): this;
startPictureInPicture(): void;
stopPictureInPicture(): void;
}
interface AVPictureInPictureControllerDelegate extends NSObjectProtocol {
pictureInPictureControllerDidStartPictureInPicture?(pictureInPictureController: AVPictureInPictureController): void;
pictureInPictureControllerDidStopPictureInPicture?(pictureInPictureController: AVPictureInPictureController): void;
pictureInPictureControllerFailedToStartPictureInPictureWithError?(pictureInPictureController: AVPictureInPictureController, error: NSError): void;
pictureInPictureControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler?(pictureInPictureController: AVPictureInPictureController, completionHandler: (p1: boolean) => void): void;
pictureInPictureControllerWillStartPictureInPicture?(pictureInPictureController: AVPictureInPictureController): void;
pictureInPictureControllerWillStopPictureInPicture?(pictureInPictureController: AVPictureInPictureController): void;
}
declare var AVPictureInPictureControllerDelegate: {
prototype: AVPictureInPictureControllerDelegate;
};
declare class AVPlayerViewController extends UIViewController {
static alloc(): AVPlayerViewController; // inherited from NSObject
static new(): AVPlayerViewController; // inherited from NSObject
static preparePrerollAds(): void;
allowsPictureInPicturePlayback: boolean;
/* readonly */ contentOverlayView: UIView;
delegate: AVPlayerViewControllerDelegate;
player: AVPlayer;
/* readonly */ readyForDisplay: boolean;
showsPlaybackControls: boolean;
updatesNowPlayingInfoCenter: boolean;
/* readonly */ videoBounds: CGRect;
videoGravity: string;
cancelPreroll(): void;
playPrerollAdWithCompletionHandler(completionHandler: (p1: NSError) => void): void;
}
interface AVPlayerViewControllerDelegate extends NSObjectProtocol {
playerViewControllerDidStartPictureInPicture?(playerViewController: AVPlayerViewController): void;
playerViewControllerDidStopPictureInPicture?(playerViewController: AVPlayerViewController): void;
playerViewControllerFailedToStartPictureInPictureWithError?(playerViewController: AVPlayerViewController, error: NSError): void;
playerViewControllerRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler?(playerViewController: AVPlayerViewController, completionHandler: (p1: boolean) => void): void;
playerViewControllerShouldAutomaticallyDismissAtPictureInPictureStart?(playerViewController: AVPlayerViewController): boolean;
playerViewControllerWillStartPictureInPicture?(playerViewController: AVPlayerViewController): void;
playerViewControllerWillStopPictureInPicture?(playerViewController: AVPlayerViewController): void;
}
declare var AVPlayerViewControllerDelegate: {
prototype: AVPlayerViewControllerDelegate;
};