About the PlaygroundSupport Module
PlaygroundSupportモジュールについて
With the PlaygroundSupport
module, you can leverage supporting functionality in Swift Playgrounds to interact with playground pages and live views. Use this module to:
PlaygroundSupport
モジュールを使って、あなたはSwift Playgroundsにおいてサポートしている機能性を活用して、プレイグラウンドページおよびライブビューと相互作用することが可能です。このモジュールを使うことで:
Access a playground page and manage its execution
プレイグラウンドページにアクセスしてそれのエクステンションを管理するDisplay and dismiss live views
ライブビューを表示する、片付けるShare and access persistent data
永続データの共有とアクセスSend and receive messages between playgrounds and live views
プレイグラウンドとライブビューの間でのメッセージの送信と受信Set and get the learning progress of the user, update hints, and show success text
ユーザの学習の進捗の設定および取得、ヒントの更新、そして結果テキストの表示
To use this module in a playground, import the module using the following statement:
このモジュールをプレイグラウンドで使うには、モジュールを以下の文を使ってインポートしてください。
import PlaygroundSupport
To use the PlaygroundSupport module while writing playground books in Xcode, download the Swift Playgrounds Author Template from Downloads for Apple Developers.
プレイグラウンドブックをXcodeで書いている間にPlaygroundSupportモジュールを使うには、Swift Playgrounds Author TemplateをDownloads for Apple Developersからダウンロードしてください。
Symbols
Symbol |
Type
|
Description
|
---|---|---|
|
Class |
An object that represents a key-value data store for the playground book. See PlaygroundKeyValueStore Class.
|
|
Class |
An object that represents the state of a playground page and enables you to interact with the Swift Playgrounds live view. See PlaygroundPage Class.
|
|
Class |
An object that enables message passing between a live view and the main playground page. See PlaygroundRemoteLiveViewProxy Class.
|
|
Protocol |
A type that can be displayed as the live view for a playground. See PlaygroundLiveViewable Protocol.
|
|
Protocol |
A type that supports receiving asynchronous messages from a playground page. See PlaygroundLiveViewMessageHandler Protocol.
|
|
Protocol |
A type that provides access to a |
|
Protocol |
A type that supports receiving asynchronous messages from an always-on live view. See PlaygroundRemoteLiveViewProxyDelegate Protocol.
|
|
Enumeration |
An enumeration used for getting and setting the current assessment state of a playground page and providing optional feedback to the user. See AssessmentStatus Enumeration.
|
|
Enumeration |
An enumeration that describes the supported representations for live views in playgrounds. See PlaygroundLiveViewRepresentation Enumeration.
|
|
Enumeration |
An enumeration of the types that can be saved in the key-value store and can be exchanged in messages with always-on live views. See PlaygroundValue Enumeration.
|
Publishing Subscriptions
サブスクリプションの出版
Copyright © 2018 Apple Inc. All rights reserved. Terms of Use | Privacy Policy | Updated: 2018-04-30