peachsim 0.1.1808 → 0.1.1811
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/cli/app-bundle-resources.ts +15 -2
- package/cli/cloud-box-artifact.ts +115 -0
- package/cli/cloud-client.ts +95 -53
- package/cli/cloud-dispatch.ts +4 -4
- package/cli/cloud-session.ts +60 -22
- package/cli/commands/box.ts +8 -2
- package/cli/commands/compat.ts +7 -4
- package/cli/commands/control.ts +60 -3
- package/cli/commands/coverage.ts +14 -4
- package/cli/commands/daemon.ts +41 -0
- package/cli/commands/no-bridge-hint.ts +9 -0
- package/cli/commands/package.ts +31 -56
- package/cli/commands/platform.ts +70 -52
- package/cli/commands/preview.ts +73 -24
- package/cli/commands/record.ts +10 -2
- package/cli/commands/screenshot.ts +17 -60
- package/cli/commands/setup.ts +3 -1
- package/cli/commands/three-mode.ts +22 -12
- package/cli/commands/upload.ts +2 -1
- package/cli/desktop-companion.ts +6 -1
- package/cli/drivers/desktop.ts +4 -1
- package/cli/main.ts +12 -2
- package/cli/metro-bundle-assets.ts +14 -4
- package/cli/outbound-endpoints.ts +7 -3
- package/cli/output-redaction.ts +38 -0
- package/cli/privacy.ts +2 -2
- package/cli/recording-access.ts +5 -0
- package/cli/remote-project-bundle.ts +83 -0
- package/cli/shell-init.ts +7 -11
- package/cli/telemetry.ts +41 -4
- package/cli/usage-error.ts +3 -0
- package/cli/ws-bridge.ts +42 -6
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +42783 -40717
- package/dist-lib/capture-contract.cjs +7 -8
- package/dist-lib/capture-contract.mjs +7 -8
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +13 -7
- package/dist-lib/dev-bundle-resolution.cjs +10 -4
- package/dist-lib/expo-swift-bundle.cjs +15819 -15559
- package/dist-lib/expo-swift-metadata.cjs +2 -1
- package/dist-lib/expo-swift-metadata.mjs +2 -1
- package/dist-lib/home-paths.cjs +2 -33
- package/dist-lib/host/bridge-host.cjs +20857 -18756
- package/dist-lib/host/fetch-proxy-handler.cjs +10 -10
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +1 -1
- package/dist-lib/index.cjs +588 -544
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +25 -19
- package/dist-lib/native-app-identity-project.cjs +15 -6
- package/dist-lib/native-app-identity-project.mjs +23 -12
- package/dist-lib/native-app-identity.cjs +1 -1
- package/dist-lib/native-app-identity.mjs +1 -1
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/pdfium-raster.cjs +1 -1
- package/dist-lib/pdfium-raster.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +27 -26
- package/dist-lib/public-origins-lib.json +104 -81
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +1 -1
- package/dist-lib/sdk.mjs +1 -1
- package/dist-lib/skills.cjs +30496 -24309
- package/dist-lib/swift-compile.cjs +292 -213
- package/dist-lib/swift-compile.mjs +334 -254
- package/dist-lib/swift-package.cjs +8 -4
- package/dist-lib/swift-package.mjs +8 -4
- package/dist-lib/swift-submit.cjs +1 -1
- package/dist-lib/swift-submit.mjs +1 -1
- package/dist-lib/swift-toolchain.cjs +32 -1
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +19172 -18941
- package/dist-lib/vite.cjs +11 -11
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-engine/src/engine/animated.d.ts +4 -0
- package/dist-types/packages/peach-engine/src/engine/animation-graph.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/expo-manifest.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/preview/upload-protocol.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +8 -1
- package/dist-types/packages/peach-globals/src/electronBridgeContract.d.ts +2 -1
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +1 -0
- package/kotlin/sdk.tar.gz +0 -0
- package/package.json +1 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCall.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCallCenter.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTCarrier.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriber.h +1 -1
- package/sdk/ios/System/Library/Frameworks/CoreTelephony.framework/Headers/CTSubscriberInfo.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h +1 -1
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h +1 -1
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVFoundation+MPNowPlayingInfoLanguageOptionAdditions.h +39 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/AVPlayerItem+MediaPlayerAdditions.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPContentItem.h +67 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPError.h +33 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaEntity.h +53 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItem.h +346 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaItemCollection.h +42 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaLibrary.h +76 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPickerController.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlayback.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaPlaylist.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuery.h +120 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMediaQuerySection.h +26 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerController.h +444 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMoviePlayerViewController.h +43 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerApplicationController.h +47 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerController.h +147 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPMusicPlayerQueueDescriptor.h +75 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoCenter.h +197 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingInfoLanguageOption.h +107 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPNowPlayingSession.h +89 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDataSource.h +59 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h +64 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h +46 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManagerContext.h +32 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommand.h +143 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h +66 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h +128 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h +27 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeSettings.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPVolumeView.h +82 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.apinotes +74 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MediaPlayerDefines.h +84 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/NSUserActivity+MediaPlayerAdditions.h +20 -0
- package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Modules/module.modulemap +5 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityCustomRotor.h +2 -2
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBackgroundConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIButtonConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuConfiguration.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIContextMenuInteraction.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDeferredMenuElement.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIMenu.h +1 -1
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPointerStyle.h +5 -5
- package/sdk/ios/usr/include/dispatch.modulemap +22 -0
- package/sdk/ios/usr/include/net/if.h +24 -0
- package/sdk/ios/usr/include/sys/time.h +1 -1
- package/sdk/ios/usr/lib/swift/Foundation.swiftmodule/arm64-apple-ios-simulator.swiftinterface +265 -0
- package/sdk/ios/usr/lib/swift/ObjectiveC.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -0
- package/sdk/ios/wasm/include/fcntl.h +2 -0
- package/sdk/ios/wasm/include/pthread.h +3 -0
- package/sdk/ios/wasm/include/stdlib.h +2 -0
- package/sdk/ios/wasm/include/unistd.h +2 -2
- package/skills/contrast/SKILL.md +2 -2
- package/src/bundle-channel.mjs +9 -72
- package/src/capture-contract.ts +12 -9
- package/src/desktop-host-delivery.ts +16 -2
- package/src/dev-bundle-resolution.ts +12 -3
- package/src/expo-native-workspace.ts +57 -19
- package/src/expo-swift-host.ts +17 -12
- package/src/expo-swift-ready.ts +4 -1
- package/src/expoSwiftContract.ts +1 -0
- package/src/home-paths.ts +4 -48
- package/src/host/bridge-host.ts +1 -0
- package/src/installed-native-libraries.ts +2 -8
- package/src/metro-project-root.ts +2 -1
- package/src/native-bundles.ts +122 -0
- package/src/native-static-libraries.ts +65 -8
- package/src/nitro-adapter.lock.json +278 -278
- package/src/nitro-bundle.ts +2 -2
- package/src/nitro-compile.ts +68 -28
- package/src/nitro-source.ts +24 -6
- package/src/nitro-superset.lock.json +94 -34
- package/src/nitroContract.ts +2 -0
- package/src/podspec-sources.ts +1966 -0
- package/src/storageSnapshotContract.ts +40 -0
- package/src/swift-compile.ts +57 -20
- package/src/swift-design-time.ts +18 -1
- package/src/swift-distribution.lock.json +11 -11
- package/src/swift-distribution.ts +9 -6
- package/src/swift-host.ts +1 -2
- package/src/swift-objc-standin.ts +316 -112
- package/src/swift-package-manifest.ts +4 -3
- package/src/swift-package.ts +10 -3
- package/src/swift-root-lock.ts +11 -0
- package/src/swift-shared-sdk.ts +10 -9
- package/src/swift-source-pods.ts +2 -2
- package/src/swift-standins.ts +40 -143
- package/src/swift-toolchain.ts +42 -0
- package/src/swift-wasm-prune.ts +53 -21
- package/src/turbo-bundle.ts +2 -2
- package/src/turbo-codegen-intake.ts +111 -108
- package/src/turbo-compile.ts +63 -33
- package/src/turbo-runtime.lock.json +21 -21
- package/src/turbo-source.ts +171 -76
- package/src/wasm-optimize.ts +31 -2
- package/src/xcode-project.ts +36 -3
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPPlayableContentDataSource.h
|
|
3
|
+
// MobileMusicPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class MPContentItem;
|
|
14
|
+
|
|
15
|
+
/// MPPlayableContentDataSource is a protocol that application objects conform to
|
|
16
|
+
/// if they want to support external media players, such as vehicle head units.
|
|
17
|
+
/// Data sources are responsible for providing metadata about your media to these
|
|
18
|
+
/// systems in a meaningful way, so that features like user interfaces and play
|
|
19
|
+
/// queues can be setup automatically.
|
|
20
|
+
MP_DEPRECATED("Use CarPlay framework", ios(7.1, 14.0))
|
|
21
|
+
MP_UNAVAILABLE(tvos, macos, watchos)
|
|
22
|
+
@protocol MPPlayableContentDataSource <NSObject>
|
|
23
|
+
@optional
|
|
24
|
+
|
|
25
|
+
/// Tells the data source to begin loading content items that are children of the
|
|
26
|
+
/// item specified by indexPath. This is provided so that applications can begin
|
|
27
|
+
/// asynchronous batched loading of content before MediaPlayer begins asking for
|
|
28
|
+
/// content items to display.
|
|
29
|
+
/// Client applications should always call the completion handler after loading
|
|
30
|
+
/// has finished, if this method is implemented.
|
|
31
|
+
- (void)beginLoadingChildItemsAtIndexPath:(NSIndexPath *)indexPath completionHandler:(void(^)(NSError * __nullable))completionHandler;
|
|
32
|
+
|
|
33
|
+
/// Tells MediaPlayer whether the content provided by the data source supports
|
|
34
|
+
/// playback progress as a property of its metadata.
|
|
35
|
+
/// If this method is not implemented, MediaPlayer will assume that progress is
|
|
36
|
+
/// not supported for any content items.
|
|
37
|
+
- (BOOL)childItemsDisplayPlaybackProgressAtIndexPath:(NSIndexPath *)indexPath;
|
|
38
|
+
|
|
39
|
+
/// Provides a content item for the provided identifier.
|
|
40
|
+
/// Provide nil if there is no content item corresponding to the identifier.
|
|
41
|
+
/// Provide an error if there is an error that will not allow content items
|
|
42
|
+
/// to be retrieved.
|
|
43
|
+
/// Client applications should always call the completion handler after loading
|
|
44
|
+
/// has finished, if this method is implemented.
|
|
45
|
+
- (void)contentItemForIdentifier:(NSString *)identifier completionHandler:(void(^)(MPContentItem *__nullable, NSError * __nullable))completionHandler MP_DEPRECATED("Use CarPlay framework", ios(10.0, 14.0)) MP_UNAVAILABLE(tvos, macos, watchos);
|
|
46
|
+
|
|
47
|
+
@required
|
|
48
|
+
/// Returns the number of child nodes at the specified index path. In a virtual
|
|
49
|
+
/// filesystem, this would be the number of files in a specific folder. An empty
|
|
50
|
+
/// index path represents the root node.
|
|
51
|
+
- (NSInteger)numberOfChildItemsAtIndexPath:(NSIndexPath *)indexPath;
|
|
52
|
+
|
|
53
|
+
/// Returns the content item at the specified index path. If the content item is
|
|
54
|
+
/// mutated after returning, its updated contents will be sent to MediaPlayer.
|
|
55
|
+
- (nullable MPContentItem *)contentItemAtIndexPath:(NSIndexPath *)indexPath;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentDelegate.h
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPPlayableContentDelegate.h
|
|
3
|
+
// MobileMusicPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class MPPlayableContentManager, MPContentItem, MPPlayableContentManagerContext;
|
|
14
|
+
|
|
15
|
+
/// The MPPlayableContentDelegate is a protocol that allows for external media
|
|
16
|
+
/// players to send playback commands to an application. For instance,
|
|
17
|
+
/// the user could browse the application's media content (provided by the
|
|
18
|
+
/// MPPlayableContentDataSource) and selects a content item to play. If the media
|
|
19
|
+
/// player decides that it wants to play the item, it will ask the application's
|
|
20
|
+
/// content delegate to initiate playback.
|
|
21
|
+
MP_DEPRECATED("Use CarPlay framework", ios(7.1, 14.0))
|
|
22
|
+
MP_UNAVAILABLE(tvos, macos, watchos)
|
|
23
|
+
@protocol MPPlayableContentDelegate <NSObject>
|
|
24
|
+
@optional
|
|
25
|
+
|
|
26
|
+
/// This method is called when a media player interface wants to play a requested
|
|
27
|
+
/// content item. The application should call the completion handler with an
|
|
28
|
+
/// appropriate error if there was an error beginning playback for the item.
|
|
29
|
+
- (void)playableContentManager:(MPPlayableContentManager *)contentManager initiatePlaybackOfContentItemAtIndexPath:(NSIndexPath *)indexPath completionHandler:(void(^)(NSError * __nullable))completionHandler
|
|
30
|
+
MP_DEPRECATED("Use CarPlay framework", ios(7.1, 14.0))
|
|
31
|
+
MP_UNAVAILABLE(tvos, macos, watchos);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
/// This method is called when a media player interface wants the now playing
|
|
35
|
+
/// app to setup a playback queue for later playback. The application should
|
|
36
|
+
/// load content into its play queue but not start playback until a Play command is
|
|
37
|
+
/// received or if the playable content manager requests to play something else.
|
|
38
|
+
/// The app should call the provided completion handler once it is ready to play
|
|
39
|
+
/// something.
|
|
40
|
+
- (void)playableContentManager:(MPPlayableContentManager *)contentManager initializePlaybackQueueWithCompletionHandler:(void(^)(NSError * __nullable))completionHandler
|
|
41
|
+
MP_DEPRECATED("Use Intents framework for initiating playback queues.", ios(9.0, 9.3))
|
|
42
|
+
MP_UNAVAILABLE(tvos, macos, watchos);
|
|
43
|
+
|
|
44
|
+
/// This method is called when a media player interface wants the now playing
|
|
45
|
+
/// app to setup a playback queue for later playback. The application should
|
|
46
|
+
/// load content into its play queue based on the provided content items and
|
|
47
|
+
/// prepare it for playback, but not start playback until a Play command is
|
|
48
|
+
/// received or if the playable content manager requests to play something else.
|
|
49
|
+
/// A nil contentItems array means that the app should prepare its queue with
|
|
50
|
+
/// anything it deems appropriate.
|
|
51
|
+
/// The app should call the provided completion handler once it is ready to play
|
|
52
|
+
/// something.
|
|
53
|
+
- (void)playableContentManager:(MPPlayableContentManager *)contentManager initializePlaybackQueueWithContentItems:(nullable NSArray *)contentItems completionHandler:(void(^)(NSError * __nullable))completionHandler
|
|
54
|
+
MP_DEPRECATED("Use Intents framework for initiating playback queues.", ios(9.3, 12.0))
|
|
55
|
+
MP_UNAVAILABLE(tvos, macos, watchos);
|
|
56
|
+
|
|
57
|
+
/// This method is called when the content server notifies the manager that the current context has changed.
|
|
58
|
+
- (void)playableContentManager:(MPPlayableContentManager *)contentManager didUpdateContext:(MPPlayableContentManagerContext *)context
|
|
59
|
+
MP_DEPRECATED("Use CarPlay framework", ios(8.4, 14.0))
|
|
60
|
+
MP_UNAVAILABLE(tvos, macos, watchos);
|
|
61
|
+
|
|
62
|
+
@end
|
|
63
|
+
|
|
64
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPPlayableContentManager.h
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPPlayableContentManager.h
|
|
3
|
+
// MobileMusicPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <MediaPlayer/MPPlayableContentDataSource.h>
|
|
11
|
+
#import <MediaPlayer/MPPlayableContentDelegate.h>
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
/// MPPlayableContentManager is a class that manages the interactions between a
|
|
16
|
+
/// media application and an external media player interface. The application
|
|
17
|
+
/// provides the content manager with a data source, which allows the media player
|
|
18
|
+
/// to browse the media content offered by the application, as well as a delegate,
|
|
19
|
+
/// which allows the media player to relay non-media remote playback commands to the application.
|
|
20
|
+
MP_DEPRECATED("Use CarPlay framework", ios(7.1, 14.0))
|
|
21
|
+
MP_UNAVAILABLE(tvos, macos, watchos)
|
|
22
|
+
@interface MPPlayableContentManager : NSObject
|
|
23
|
+
|
|
24
|
+
@property (nonatomic, weak, nullable) id<MPPlayableContentDataSource> dataSource;
|
|
25
|
+
@property (nonatomic, weak, nullable) id<MPPlayableContentDelegate> delegate;
|
|
26
|
+
@property (nonatomic, readonly) MPPlayableContentManagerContext *context MP_DEPRECATED("Use CarPlay framework", ios(8.4, 14.0));
|
|
27
|
+
|
|
28
|
+
/// Tells the content manager which MPContentItems are currently playing based on their identifiers.
|
|
29
|
+
@property (nonatomic, copy) NSArray<NSString *> *nowPlayingIdentifiers MP_DEPRECATED("Use CarPlay framework", ios(10.0, 14.0));
|
|
30
|
+
|
|
31
|
+
/// Returns the application's instance of the content manager.
|
|
32
|
+
+ (instancetype)sharedContentManager;
|
|
33
|
+
|
|
34
|
+
/// Tells the content manager that the data source has changed and that we need to
|
|
35
|
+
/// reload data from the data source.
|
|
36
|
+
- (void)reloadData;
|
|
37
|
+
|
|
38
|
+
/// Used to begin a synchronized update to multiple MPContentItems at once.
|
|
39
|
+
- (void)beginUpdates;
|
|
40
|
+
|
|
41
|
+
/// Ends a synchronized update.
|
|
42
|
+
- (void)endUpdates;
|
|
43
|
+
|
|
44
|
+
@end
|
|
45
|
+
|
|
46
|
+
NS_ASSUME_NONNULL_END
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPPlayableContentManagerContext.h
|
|
3
|
+
// MobileMusicPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright © 2015 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
/// MPPlayableContentManagerContext represents the current state of
|
|
12
|
+
/// the playable content endpoint. A context is retrievable from an instance
|
|
13
|
+
/// of MPPlayableContentManager.
|
|
14
|
+
MP_DEPRECATED("Use CarPlay framework", ios(8.4, 14.0))
|
|
15
|
+
MP_UNAVAILABLE(tvos, watchos, macos)
|
|
16
|
+
@interface MPPlayableContentManagerContext : NSObject
|
|
17
|
+
|
|
18
|
+
/// The number of items the content server will display when content limiting is enforced.
|
|
19
|
+
/// Returns NSIntegerMax if the content server will never limit the number of items.
|
|
20
|
+
@property (nonatomic, readonly) NSInteger enforcedContentItemsCount;
|
|
21
|
+
|
|
22
|
+
/// The depth of the navigation hierarchy the content server will allow. Exceeding this limit will result in a crash.
|
|
23
|
+
@property (nonatomic, readonly) NSInteger enforcedContentTreeDepth;
|
|
24
|
+
|
|
25
|
+
/// Represents whether content limits are being enforced by the content server or not.
|
|
26
|
+
@property (nonatomic, readonly) BOOL contentLimitsEnforced;
|
|
27
|
+
@property (nonatomic, readonly) BOOL contentLimitsEnabled MP_DEPRECATED_WITH_REPLACEMENT("contentLimitsEnforced", ios(8.4, 9.0));
|
|
28
|
+
|
|
29
|
+
/// Represents whether the content server is available or not.
|
|
30
|
+
@property (nonatomic, readonly) BOOL endpointAvailable;
|
|
31
|
+
|
|
32
|
+
@end
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPRemoteCommand.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <MediaPlayer/MPRemoteControlTypes.h>
|
|
11
|
+
|
|
12
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
13
|
+
|
|
14
|
+
@class MPRemoteCommandEvent;
|
|
15
|
+
|
|
16
|
+
typedef NS_ENUM(NSInteger, MPRemoteCommandHandlerStatus) {
|
|
17
|
+
/// There was no error executing the requested command.
|
|
18
|
+
MPRemoteCommandHandlerStatusSuccess = 0,
|
|
19
|
+
|
|
20
|
+
/// The command could not be executed because the requested content does not
|
|
21
|
+
/// exist in the current application state.
|
|
22
|
+
MPRemoteCommandHandlerStatusNoSuchContent = 100,
|
|
23
|
+
|
|
24
|
+
/// The command could not be executed because there is no now playing item
|
|
25
|
+
/// available that is required for this command. As an example, an
|
|
26
|
+
/// application would return this error code if an "enable language option"
|
|
27
|
+
/// command is received, but nothing is currently playing.
|
|
28
|
+
MPRemoteCommandHandlerStatusNoActionableNowPlayingItem MP_API(ios(9.1), macos(10.12.2)) = 110,
|
|
29
|
+
|
|
30
|
+
/// The command could not be executed because a device required
|
|
31
|
+
/// is not available. For instance, if headphones are required, or if a watch
|
|
32
|
+
/// app realizes that it needs the companion to fulfull a request.
|
|
33
|
+
MPRemoteCommandHandlerStatusDeviceNotFound MP_API(ios(11.0), macos(10.13)) = 120,
|
|
34
|
+
|
|
35
|
+
/// The command could not be executed for another reason.
|
|
36
|
+
MPRemoteCommandHandlerStatusCommandFailed = 200
|
|
37
|
+
} MP_API(ios(7.1), macos(10.12.2), watchos(5.0));
|
|
38
|
+
|
|
39
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
40
|
+
@interface MPRemoteCommand : NSObject
|
|
41
|
+
|
|
42
|
+
MP_INIT_UNAVAILABLE
|
|
43
|
+
|
|
44
|
+
/// Whether a button (for example) should be enabled and tappable for this
|
|
45
|
+
/// particular command.
|
|
46
|
+
@property (nonatomic, assign, getter = isEnabled) BOOL enabled;
|
|
47
|
+
|
|
48
|
+
// Target-action style for adding handlers to commands.
|
|
49
|
+
// Actions receive an MPRemoteCommandEvent as the first parameter.
|
|
50
|
+
// Targets are not retained by addTarget:action:, and should be removed from the
|
|
51
|
+
// command when the target is deallocated.
|
|
52
|
+
//
|
|
53
|
+
// Your selector should return a MPRemoteCommandHandlerStatus value when
|
|
54
|
+
// possible. This allows the system to respond appropriately to commands that
|
|
55
|
+
// may not have been able to be executed in accordance with the application's
|
|
56
|
+
// current state.
|
|
57
|
+
- (void)addTarget:(id)target action:(SEL)action;
|
|
58
|
+
- (void)removeTarget:(id)target action:(nullable SEL)action;
|
|
59
|
+
- (void)removeTarget:(nullable id)target;
|
|
60
|
+
|
|
61
|
+
/// Returns an opaque object to act as the target.
|
|
62
|
+
- (id)addTargetWithHandler:(MPRemoteCommandHandlerStatus(^)(MPRemoteCommandEvent *event))handler;
|
|
63
|
+
|
|
64
|
+
@end
|
|
65
|
+
|
|
66
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
67
|
+
@interface MPSkipIntervalCommand : MPRemoteCommand
|
|
68
|
+
|
|
69
|
+
/// An array of NSNumbers (NSTimeIntervals) that contain preferred skip intervals.
|
|
70
|
+
@property (nonatomic, copy) NSArray<NSNumber *> *preferredIntervals;
|
|
71
|
+
|
|
72
|
+
@end
|
|
73
|
+
|
|
74
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
75
|
+
@interface MPFeedbackCommand : MPRemoteCommand
|
|
76
|
+
|
|
77
|
+
/// Whether the feedback command is in an "active" state. An example of when a
|
|
78
|
+
/// feedback command would be active is if the user already "liked" a particular
|
|
79
|
+
/// content item.
|
|
80
|
+
@property (nonatomic, assign, getter = isActive) BOOL active;
|
|
81
|
+
|
|
82
|
+
/// A localized string briefly describing the context of the command.
|
|
83
|
+
@property (nonatomic, copy) NSString *localizedTitle;
|
|
84
|
+
|
|
85
|
+
/// An optional shorter version of the localized title for this feedback
|
|
86
|
+
/// command. MediaPlayer uses this property to display this command's title on
|
|
87
|
+
/// remote control interfaces with little screen space.
|
|
88
|
+
@property (nonatomic, copy) NSString *localizedShortTitle MP_API(ios(8.0));
|
|
89
|
+
|
|
90
|
+
@end
|
|
91
|
+
|
|
92
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
93
|
+
@interface MPRatingCommand : MPRemoteCommand
|
|
94
|
+
|
|
95
|
+
/// Minimum rating for the command.
|
|
96
|
+
@property (nonatomic, assign) float minimumRating;
|
|
97
|
+
|
|
98
|
+
/// Maximum rating for the command.
|
|
99
|
+
@property (nonatomic, assign) float maximumRating;
|
|
100
|
+
|
|
101
|
+
@end
|
|
102
|
+
|
|
103
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
104
|
+
@interface MPChangePlaybackRateCommand : MPRemoteCommand
|
|
105
|
+
|
|
106
|
+
/// An array of NSNumbers (floats) that contain supported playback rates that
|
|
107
|
+
/// the command can send.
|
|
108
|
+
@property (nonatomic, copy) NSArray<NSNumber *> *supportedPlaybackRates;
|
|
109
|
+
|
|
110
|
+
@end
|
|
111
|
+
|
|
112
|
+
/// Command for changing the current playback position in a now playing item.
|
|
113
|
+
/// Sends out MPChangePlaybackPositionCommandEvents.
|
|
114
|
+
MP_API(ios(9.0), tvos(9.0), macos(10.12.2), watchos(5.0))
|
|
115
|
+
@interface MPChangePlaybackPositionCommand : MPRemoteCommand
|
|
116
|
+
|
|
117
|
+
@end
|
|
118
|
+
|
|
119
|
+
/// Command for changing the current shuffle mode to use during playback. To
|
|
120
|
+
/// update the system's current representation of your app's shuffle mode, set
|
|
121
|
+
/// the currentShuffleType property on this command to the proper shuffle type
|
|
122
|
+
/// value.
|
|
123
|
+
MP_API(ios(8.0), tvos(8.0), macos(10.12.2), watchos(5.0))
|
|
124
|
+
@interface MPChangeShuffleModeCommand : MPRemoteCommand
|
|
125
|
+
|
|
126
|
+
/// The app's current shuffle type.
|
|
127
|
+
@property (nonatomic, assign) MPShuffleType currentShuffleType;
|
|
128
|
+
|
|
129
|
+
@end
|
|
130
|
+
|
|
131
|
+
/// Command for changing the current repeat mode to use during playback. To
|
|
132
|
+
/// update the system's current representation of your app's repeat mode, set
|
|
133
|
+
/// the currentRepeatType property on this command to the proper repeat type
|
|
134
|
+
/// value.
|
|
135
|
+
MP_API(ios(8.0), tvos(8.0), macos(10.12.2), watchos(5.0))
|
|
136
|
+
@interface MPChangeRepeatModeCommand : MPRemoteCommand
|
|
137
|
+
|
|
138
|
+
/// The app's current repeat mode.
|
|
139
|
+
@property (nonatomic, assign) MPRepeatType currentRepeatType;
|
|
140
|
+
|
|
141
|
+
@end
|
|
142
|
+
|
|
143
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandCenter.h
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPRemoteCommandCenter.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
12
|
+
|
|
13
|
+
@class MPChangePlaybackPositionCommand;
|
|
14
|
+
@class MPChangePlaybackRateCommand;
|
|
15
|
+
@class MPChangeRepeatModeCommand;
|
|
16
|
+
@class MPChangeShuffleModeCommand;
|
|
17
|
+
@class MPFeedbackCommand;
|
|
18
|
+
@class MPRatingCommand;
|
|
19
|
+
@class MPRemoteCommand;
|
|
20
|
+
@class MPSkipIntervalCommand;
|
|
21
|
+
|
|
22
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
23
|
+
@interface MPRemoteCommandCenter : NSObject
|
|
24
|
+
|
|
25
|
+
// Playback Commands
|
|
26
|
+
@property (nonatomic, readonly) MPRemoteCommand *pauseCommand;
|
|
27
|
+
@property (nonatomic, readonly) MPRemoteCommand *playCommand;
|
|
28
|
+
@property (nonatomic, readonly) MPRemoteCommand *stopCommand;
|
|
29
|
+
@property (nonatomic, readonly) MPRemoteCommand *togglePlayPauseCommand;
|
|
30
|
+
@property (nonatomic, readonly) MPRemoteCommand *enableLanguageOptionCommand MP_API(ios(9.0), macos(10.12.2));
|
|
31
|
+
@property (nonatomic, readonly) MPRemoteCommand *disableLanguageOptionCommand MP_API(ios(9.0), macos(10.12.2));
|
|
32
|
+
@property (nonatomic, readonly) MPChangePlaybackRateCommand *changePlaybackRateCommand;
|
|
33
|
+
@property (nonatomic, readonly) MPChangeRepeatModeCommand *changeRepeatModeCommand;
|
|
34
|
+
@property (nonatomic, readonly) MPChangeShuffleModeCommand *changeShuffleModeCommand;
|
|
35
|
+
|
|
36
|
+
// Previous/Next Track Commands
|
|
37
|
+
@property (nonatomic, readonly) MPRemoteCommand *nextTrackCommand;
|
|
38
|
+
@property (nonatomic, readonly) MPRemoteCommand *previousTrackCommand;
|
|
39
|
+
|
|
40
|
+
// Skip Interval Commands
|
|
41
|
+
@property (nonatomic, readonly) MPSkipIntervalCommand *skipForwardCommand;
|
|
42
|
+
@property (nonatomic, readonly) MPSkipIntervalCommand *skipBackwardCommand;
|
|
43
|
+
|
|
44
|
+
// Seek Commands
|
|
45
|
+
@property (nonatomic, readonly) MPRemoteCommand *seekForwardCommand;
|
|
46
|
+
@property (nonatomic, readonly) MPRemoteCommand *seekBackwardCommand;
|
|
47
|
+
@property (nonatomic, readonly) MPChangePlaybackPositionCommand *changePlaybackPositionCommand MP_API(ios(9.1), macos(10.12.2));
|
|
48
|
+
|
|
49
|
+
// Rating Command
|
|
50
|
+
@property (nonatomic, readonly) MPRatingCommand *ratingCommand;
|
|
51
|
+
|
|
52
|
+
// Feedback Commands
|
|
53
|
+
// These are generalized to three distinct actions. Your application can provide
|
|
54
|
+
// additional context about these actions with the localizedTitle property in
|
|
55
|
+
// MPFeedbackCommand.
|
|
56
|
+
@property (nonatomic, readonly) MPFeedbackCommand *likeCommand;
|
|
57
|
+
@property (nonatomic, readonly) MPFeedbackCommand *dislikeCommand;
|
|
58
|
+
@property (nonatomic, readonly) MPFeedbackCommand *bookmarkCommand;
|
|
59
|
+
|
|
60
|
+
+ (MPRemoteCommandCenter *)sharedCommandCenter;
|
|
61
|
+
|
|
62
|
+
MP_INIT_UNAVAILABLE
|
|
63
|
+
|
|
64
|
+
@end
|
|
65
|
+
|
|
66
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteCommandEvent.h
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPRemoteCommandEvent.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2013 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
#import <MediaPlayer/MPNowPlayingInfoLanguageOption.h>
|
|
11
|
+
#import <MediaPlayer/MPRemoteControlTypes.h>
|
|
12
|
+
|
|
13
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
@class MPRemoteCommand;
|
|
16
|
+
|
|
17
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
18
|
+
@interface MPRemoteCommandEvent : NSObject
|
|
19
|
+
|
|
20
|
+
/// The command that sent the event.
|
|
21
|
+
@property (nonatomic, readonly) MPRemoteCommand *command;
|
|
22
|
+
|
|
23
|
+
/// The time when the event occurred.
|
|
24
|
+
@property (nonatomic, readonly) NSTimeInterval timestamp;
|
|
25
|
+
|
|
26
|
+
@end
|
|
27
|
+
|
|
28
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
29
|
+
@interface MPSkipIntervalCommandEvent : MPRemoteCommandEvent
|
|
30
|
+
|
|
31
|
+
/// The chosen interval for this skip command event.
|
|
32
|
+
@property (nonatomic, readonly) NSTimeInterval interval;
|
|
33
|
+
|
|
34
|
+
@end
|
|
35
|
+
|
|
36
|
+
typedef NS_ENUM(NSUInteger, MPSeekCommandEventType) {
|
|
37
|
+
MPSeekCommandEventTypeBeginSeeking,
|
|
38
|
+
MPSeekCommandEventTypeEndSeeking
|
|
39
|
+
} MP_API(ios(7.1), macos(10.12.2), watchos(5.0));
|
|
40
|
+
|
|
41
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
42
|
+
@interface MPSeekCommandEvent : MPRemoteCommandEvent
|
|
43
|
+
|
|
44
|
+
/// The type of seek command event, which specifies whether an external player
|
|
45
|
+
/// began or ended seeking.
|
|
46
|
+
@property (nonatomic, readonly) MPSeekCommandEventType type;
|
|
47
|
+
|
|
48
|
+
@end
|
|
49
|
+
|
|
50
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
51
|
+
@interface MPRatingCommandEvent : MPRemoteCommandEvent
|
|
52
|
+
|
|
53
|
+
/// The chosen rating for this command event. This value will be within the
|
|
54
|
+
/// minimumRating and maximumRating values set for the MPRatingCommand object.
|
|
55
|
+
@property (nonatomic, readonly) float rating;
|
|
56
|
+
|
|
57
|
+
@end
|
|
58
|
+
|
|
59
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
60
|
+
@interface MPChangePlaybackRateCommandEvent : MPRemoteCommandEvent
|
|
61
|
+
|
|
62
|
+
/// The chosen playback rate for this command event. This value will be equal
|
|
63
|
+
/// to one of the values specified in the supportedPlaybackRates array for the
|
|
64
|
+
/// MPChangePlaybackRateCommand object.
|
|
65
|
+
@property (nonatomic, readonly) float playbackRate;
|
|
66
|
+
|
|
67
|
+
@end
|
|
68
|
+
|
|
69
|
+
MP_API(ios(7.1), tvos(7.1), macos(10.12.2), watchos(5.0))
|
|
70
|
+
@interface MPFeedbackCommandEvent : MPRemoteCommandEvent
|
|
71
|
+
|
|
72
|
+
/// Whether the command event is a negative operation. For example, the command
|
|
73
|
+
/// might ask that the app remove a bookmark for a particular track, rather than
|
|
74
|
+
/// add it. In this case, the handler for the bookmark command should check this
|
|
75
|
+
/// flag and remove the bookmark if it is set to YES.
|
|
76
|
+
///
|
|
77
|
+
/// For like/dislike, a "negative like" might be treated differently from a
|
|
78
|
+
/// dislike command. The app might want to remove the "like" flag from the
|
|
79
|
+
/// current track, but not treat it as a dislike command.
|
|
80
|
+
@property (nonatomic, readonly, getter = isNegative) BOOL negative;
|
|
81
|
+
|
|
82
|
+
@end
|
|
83
|
+
|
|
84
|
+
MP_API(ios(9.0), tvos(9.0), macos(10.12.2), watchos(5.0))
|
|
85
|
+
@interface MPChangeLanguageOptionCommandEvent : MPRemoteCommandEvent
|
|
86
|
+
|
|
87
|
+
/// The requested language option to change.
|
|
88
|
+
/// The supplied language option may be the Automatic Legible Language Option
|
|
89
|
+
/// which would mean that best legible language option based on user preferences
|
|
90
|
+
/// is being requested. See MPNowPlayingInfoLanguageOption isAutomaticLegibleLanguageOption
|
|
91
|
+
@property (nonatomic, readonly) MPNowPlayingInfoLanguageOption *languageOption;
|
|
92
|
+
|
|
93
|
+
/// Describes the extent of the changed language option
|
|
94
|
+
@property (nonatomic, readonly) MPChangeLanguageOptionSetting setting;
|
|
95
|
+
|
|
96
|
+
@end
|
|
97
|
+
|
|
98
|
+
MP_API(ios(8.0), tvos(8.0), macos(10.12.2), watchos(5.0))
|
|
99
|
+
@interface MPChangePlaybackPositionCommandEvent : MPRemoteCommandEvent
|
|
100
|
+
|
|
101
|
+
/// The desired playback position to use when setting the current time of the player.
|
|
102
|
+
@property (nonatomic, readonly) NSTimeInterval positionTime;
|
|
103
|
+
|
|
104
|
+
@end
|
|
105
|
+
|
|
106
|
+
MP_API(ios(8.0), tvos(8.0), macos(10.12.2), watchos(5.0))
|
|
107
|
+
@interface MPChangeShuffleModeCommandEvent : MPRemoteCommandEvent
|
|
108
|
+
|
|
109
|
+
/// The desired shuffle type to use when fulfilling the request.
|
|
110
|
+
@property (nonatomic, readonly) MPShuffleType shuffleType;
|
|
111
|
+
|
|
112
|
+
/// Whether or not the selection should be preserved between playback sessions
|
|
113
|
+
@property (nonatomic, readonly) BOOL preservesShuffleMode;
|
|
114
|
+
|
|
115
|
+
@end
|
|
116
|
+
|
|
117
|
+
MP_API(ios(8.0), tvos(8.0), macos(10.12.2), watchos(5.0))
|
|
118
|
+
@interface MPChangeRepeatModeCommandEvent : MPRemoteCommandEvent
|
|
119
|
+
|
|
120
|
+
/// The desired repeat type to use when fulfilling the request.
|
|
121
|
+
@property (nonatomic, readonly) MPRepeatType repeatType;
|
|
122
|
+
|
|
123
|
+
/// Whether or not the selection should be preserved between playback sessions
|
|
124
|
+
@property (nonatomic, readonly) BOOL preservesRepeatMode;
|
|
125
|
+
|
|
126
|
+
@end
|
|
127
|
+
|
|
128
|
+
NS_ASSUME_NONNULL_END
|
package/sdk/ios/System/Library/Frameworks/MediaPlayer.framework/Headers/MPRemoteControlTypes.h
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPRemoteControlTypes.h
|
|
3
|
+
// MediaPlayerFramework
|
|
4
|
+
//
|
|
5
|
+
// Copyright (c) 2016 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
typedef NS_ENUM(NSInteger, MPShuffleType) {
|
|
12
|
+
MPShuffleTypeOff, /// Nothing is shuffled during playback.
|
|
13
|
+
MPShuffleTypeItems, /// Individual items are shuffled during playback.
|
|
14
|
+
MPShuffleTypeCollections, /// Collections (e.g. albums) are shuffled during playback.
|
|
15
|
+
} MP_API(ios(3.0), macos(10.12.2), watchos(5.0));
|
|
16
|
+
|
|
17
|
+
typedef NS_ENUM(NSInteger, MPRepeatType) {
|
|
18
|
+
MPRepeatTypeOff, /// Nothing is repeated during playback.
|
|
19
|
+
MPRepeatTypeOne, /// Repeat a single item indefinitely.
|
|
20
|
+
MPRepeatTypeAll, /// Repeat the current container or playlist indefinitely.
|
|
21
|
+
} MP_API(ios(3.0), macos(10.12.2), watchos(5.0));
|
|
22
|
+
|
|
23
|
+
typedef NS_ENUM(NSInteger, MPChangeLanguageOptionSetting) {
|
|
24
|
+
MPChangeLanguageOptionSettingNone, /// No Language Option Change
|
|
25
|
+
MPChangeLanguageOptionSettingNowPlayingItemOnly, /// The Language Option change applies only the the now playing item
|
|
26
|
+
MPChangeLanguageOptionSettingPermanent /// The Language Option change should apply to all future playback
|
|
27
|
+
} MP_API(ios(9.3), macos(10.12.2), watchos(5.0));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPVolumeSettings.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2008-2019 Apple Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
#import <Foundation/Foundation.h>
|
|
10
|
+
|
|
11
|
+
MP_UNAVAILABLE_BEGIN(tvos, watchos, macos, visionos)
|
|
12
|
+
|
|
13
|
+
MP_EXTERN void MPVolumeSettingsAlertShow(void)
|
|
14
|
+
MP_DEPRECATED("Use MPVolumeView to present volume controls.", ios(2.0, 11.3));
|
|
15
|
+
MP_EXTERN void MPVolumeSettingsAlertHide(void)
|
|
16
|
+
MP_DEPRECATED("Use MPVolumeView to present volume controls.", ios(2.0, 11.3));
|
|
17
|
+
MP_EXTERN BOOL MPVolumeSettingsAlertIsVisible(void)
|
|
18
|
+
MP_DEPRECATED("Use MPVolumeView to present volume controls.", ios(2.0, 11.3));
|
|
19
|
+
|
|
20
|
+
MP_UNAVAILABLE_END
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//
|
|
2
|
+
// MPVolumeView.h
|
|
3
|
+
// MediaPlayer
|
|
4
|
+
//
|
|
5
|
+
// Copyright 2008-2010 Apple, Inc. All rights reserved.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
#import <MediaPlayer/MediaPlayerDefines.h>
|
|
9
|
+
|
|
10
|
+
#if MP_HAS_HEADER(UIKit, UIView.h)
|
|
11
|
+
|
|
12
|
+
#import <Foundation/Foundation.h>
|
|
13
|
+
#import <UIKit/UIKit.h>
|
|
14
|
+
|
|
15
|
+
NS_ASSUME_NONNULL_BEGIN
|
|
16
|
+
|
|
17
|
+
MP_UNAVAILABLE_BEGIN(watchos, macos)
|
|
18
|
+
|
|
19
|
+
MP_API(ios(2.0))
|
|
20
|
+
@interface MPVolumeView : UIView <NSCoding>
|
|
21
|
+
|
|
22
|
+
@property (nonatomic) BOOL showsVolumeSlider MP_API(ios(4.2)); // Default is YES.
|
|
23
|
+
@property (nonatomic) BOOL showsRouteButton MP_DEPRECATED("Use AVRoutePickerView instead.", ios(4.2, 13.0)) API_UNAVAILABLE(visionos);
|
|
24
|
+
|
|
25
|
+
// Returns YES if wireless routes (AirPlay, Bluetooth, etc) are available for user selection.
|
|
26
|
+
// Note that the view must be in present in a window hierarchy in order to discover some types of wireless routes.
|
|
27
|
+
@property (nonatomic, readonly, getter=areWirelessRoutesAvailable) BOOL wirelessRoutesAvailable MP_DEPRECATED("Use AVRouteDetector.multipleRoutesDetected instead.", ios(7.0, 13.0)) API_UNAVAILABLE(visionos);
|
|
28
|
+
|
|
29
|
+
// Returns YES if a wireless route is active.
|
|
30
|
+
@property (nonatomic, readonly, getter=isWirelessRouteActive) BOOL wirelessRouteActive MP_DEPRECATED("Use AVPlayer.externalPlaybackActive instead.", ios(7.0, 13.0)) API_UNAVAILABLE(visionos);
|
|
31
|
+
|
|
32
|
+
// Volume slider customization
|
|
33
|
+
|
|
34
|
+
- (void)setMinimumVolumeSliderImage:(nullable UIImage *)image forState:(UIControlState)state MP_API(ios(6.0));
|
|
35
|
+
- (void)setMaximumVolumeSliderImage:(nullable UIImage *)image forState:(UIControlState)state MP_API(ios(6.0));
|
|
36
|
+
- (void)setVolumeThumbImage:(nullable UIImage *)image forState:(UIControlState)state MP_API(ios(6.0));
|
|
37
|
+
|
|
38
|
+
- (nullable UIImage *)minimumVolumeSliderImageForState:(UIControlState)state MP_API(ios(6.0));
|
|
39
|
+
- (nullable UIImage *)maximumVolumeSliderImageForState:(UIControlState)state MP_API(ios(6.0));
|
|
40
|
+
- (nullable UIImage *)volumeThumbImageForState:(UIControlState)state MP_API(ios(6.0));
|
|
41
|
+
|
|
42
|
+
// Sets the image for the EU volume limit. When appropriate, this image will be displayed on top of the
|
|
43
|
+
// maximumVolumeSliderImage. It must be visually distinct from the maximumVolumeSliderImage, and use
|
|
44
|
+
// a color similar to the default, to convey a sense of warning to the user. The same image is used for
|
|
45
|
+
// all control states. For debugging purposes, switch on the "EU Volume Limit" setting in the Developer
|
|
46
|
+
// menu of the Settings application to always enable the volume limit.
|
|
47
|
+
@property (nonatomic, strong, nullable) UIImage *volumeWarningSliderImage MP_DEPRECATED("This is no longer supported", ios(7.0, 17.0))
|
|
48
|
+
API_UNAVAILABLE(visionos);
|
|
49
|
+
|
|
50
|
+
- (CGRect)volumeSliderRectForBounds:(CGRect)bounds MP_API(ios(6.0));
|
|
51
|
+
- (CGRect)volumeThumbRectForBounds:(CGRect)bounds volumeSliderRect:(CGRect)rect value:(float)value MP_API(ios(6.0));
|
|
52
|
+
|
|
53
|
+
// Route button customization
|
|
54
|
+
|
|
55
|
+
- (void)setRouteButtonImage:(nullable UIImage *)image forState:(UIControlState)state
|
|
56
|
+
MP_DEPRECATED("Use AVRoutePickerView.routePickerButtonStyle instead.", ios(6.0, 13.0))
|
|
57
|
+
API_UNAVAILABLE(visionos);
|
|
58
|
+
- (nullable UIImage *)routeButtonImageForState:(UIControlState)state
|
|
59
|
+
MP_DEPRECATED("See AVRoutePickerView for possible replacements.", ios(6.0, 13.0))
|
|
60
|
+
API_UNAVAILABLE(visionos);
|
|
61
|
+
|
|
62
|
+
- (CGRect)routeButtonRectForBounds:(CGRect)bounds
|
|
63
|
+
MP_DEPRECATED("See AVRoutePickerView for possible replacements.", ios(6.0, 13.0))
|
|
64
|
+
API_UNAVAILABLE(visionos);
|
|
65
|
+
|
|
66
|
+
@end
|
|
67
|
+
|
|
68
|
+
// Posted when the wirelessRoutesAvailable property changes.
|
|
69
|
+
MP_EXTERN NSString * const MPVolumeViewWirelessRoutesAvailableDidChangeNotification
|
|
70
|
+
MP_DEPRECATED("Use AVRouteDetectorMultipleRoutesDetectedDidChangeNotification instead.", ios(7.0, 13.0))
|
|
71
|
+
API_UNAVAILABLE(visionos);
|
|
72
|
+
|
|
73
|
+
// Posted when the wirelessRouteActive property changes.
|
|
74
|
+
MP_EXTERN NSString * const MPVolumeViewWirelessRouteActiveDidChangeNotification
|
|
75
|
+
MP_DEPRECATED("Use AVPlayer.externalPlaybackActive KVO instead.", ios(7.0, 13.0))
|
|
76
|
+
API_UNAVAILABLE(visionos);
|
|
77
|
+
|
|
78
|
+
MP_UNAVAILABLE_END
|
|
79
|
+
|
|
80
|
+
NS_ASSUME_NONNULL_END
|
|
81
|
+
|
|
82
|
+
#endif
|