# WARNING: Please don't edit this file. It was generated by Python/WinRT v1.0.0-beta.7

import enum
import datetime
import sys
import types
import typing

import winsdk._winrt as _winrt
import winsdk.windows.foundation
import winsdk.windows.foundation.collections
import winsdk.windows.storage

class AppRecordingSaveScreenshotOption(enum.IntEnum):
    NONE = 0
    HDR_CONTENT_VISIBLE = 1

Self = typing.TypeVar('Self')

class AppRecordingManager(_winrt.Object):
    supported_screenshot_media_encoding_subtypes: typing.Optional[winsdk.windows.foundation.collections.IVectorView[str]]
    @staticmethod
    def _from(obj: _winrt.Object) -> AppRecordingManager: ...
    @staticmethod
    def get_default() -> typing.Optional[AppRecordingManager]: ...
    def get_status(self) -> typing.Optional[AppRecordingStatus]: ...
    def record_time_span_to_file_async(self, start_time: datetime.datetime, duration: datetime.timedelta, file: typing.Optional[winsdk.windows.storage.StorageFile]) -> winsdk.windows.foundation.IAsyncOperation[AppRecordingResult]: ...
    def save_screenshot_to_files_async(self, folder: typing.Optional[winsdk.windows.storage.StorageFolder], filename_prefix: str, option: AppRecordingSaveScreenshotOption, requested_formats: typing.Iterable[str]) -> winsdk.windows.foundation.IAsyncOperation[AppRecordingSaveScreenshotResult]: ...
    def start_recording_to_file_async(self, file: typing.Optional[winsdk.windows.storage.StorageFile]) -> winsdk.windows.foundation.IAsyncOperation[AppRecordingResult]: ...

class AppRecordingResult(_winrt.Object):
    duration: datetime.timedelta
    extended_error: winsdk.windows.foundation.HResult
    is_file_truncated: _winrt.Boolean
    succeeded: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> AppRecordingResult: ...

class AppRecordingSaveScreenshotResult(_winrt.Object):
    extended_error: winsdk.windows.foundation.HResult
    saved_screenshot_infos: typing.Optional[winsdk.windows.foundation.collections.IVectorView[AppRecordingSavedScreenshotInfo]]
    succeeded: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> AppRecordingSaveScreenshotResult: ...

class AppRecordingSavedScreenshotInfo(_winrt.Object):
    file: typing.Optional[winsdk.windows.storage.StorageFile]
    media_encoding_subtype: str
    @staticmethod
    def _from(obj: _winrt.Object) -> AppRecordingSavedScreenshotInfo: ...

class AppRecordingStatus(_winrt.Object):
    can_record: _winrt.Boolean
    can_record_time_span: _winrt.Boolean
    details: typing.Optional[AppRecordingStatusDetails]
    historical_buffer_duration: datetime.timedelta
    @staticmethod
    def _from(obj: _winrt.Object) -> AppRecordingStatus: ...

class AppRecordingStatusDetails(_winrt.Object):
    is_any_app_broadcasting: _winrt.Boolean
    is_app_inactive: _winrt.Boolean
    is_blocked_for_app: _winrt.Boolean
    is_capture_resource_unavailable: _winrt.Boolean
    is_disabled_by_system: _winrt.Boolean
    is_disabled_by_user: _winrt.Boolean
    is_game_stream_in_progress: _winrt.Boolean
    is_gpu_constrained: _winrt.Boolean
    is_time_span_recording_disabled: _winrt.Boolean
    @staticmethod
    def _from(obj: _winrt.Object) -> AppRecordingStatusDetails: ...

