ReplayKit 命名空間
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許在 iOS 應用程式中進行螢幕錄影。
類別
介面
| 名稱 | Description |
|---|---|
| IRPBroadcastActivityControllerDelegate |
此介面代表 Objective-C 協定 |
| IRPBroadcastActivityViewControllerDelegate | |
| IRPBroadcastControllerDelegate |
委派回應廣播變更的物件。 |
| IRPPreviewViewControllerDelegate |
用於預覽與編輯 ReplayKit 錄影的 View 控制器協定。 |
| IRPScreenRecorderDelegate |
允許使用者同時錄製應用程式的視覺與音訊輸出(螢幕錄影)的協定。 |
列舉
| 名稱 | Description |
|---|---|
| RPCameraPosition |
在裝置上列舉攝影機位置。 |
| RPPreviewViewControllerMode |
允許在 iOS 應用程式中進行螢幕錄影。 |
| RPRecordingError |
列舉記錄過程中可能遇到的錯誤。 |
| RPSampleBufferType |
允許在 iOS 應用程式中進行螢幕錄影。 |
委派
| 名稱 | Description |
|---|---|
| LoadBroadcastingHandler |
代理,指定完成處理程序在呼叫方法 LoadBroadcastingApplicationInfo(NSExtensionContext, LoadBroadcastingHandler) 時的簽名。 |
備註
ReplayKit 命名空間提供允許錄製開發者應用程式螢幕的類別。 此外,它還提供標準 RPPreviewViewController 的檢視控制器,讓使用者可以預覽、裁切並分享錄影內容。
開發者必須利用 SharedRecorder 單重播來製作重播。
if (RPScreenRecorder.SharedRecorder.Available)
{
recordingTask = RPScreenRecorder.SharedRecorder.StartRecordingAsync(true);
}
//...etc...
RPPreviewViewController controller = await RPScreenRecorder.SharedRecorder.StopRecordingAsync();
this.NavigationController.PushViewController(controller, true);