# 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.streams

class ContentAccessRestrictionLevel(enum.IntEnum):
    ALLOW = 0
    WARN = 1
    BLOCK = 2
    HIDE = 3

class RatedContentCategory(enum.IntEnum):
    GENERAL = 0
    APPLICATION = 1
    GAME = 2
    MOVIE = 3
    TELEVISION = 4
    MUSIC = 5

Self = typing.TypeVar('Self')

class ContentRestrictionsBrowsePolicy(_winrt.Object):
    geographic_region: str
    max_browsable_age_rating: typing.Optional[typing.Optional[_winrt.UInt32]]
    preferred_age_rating: typing.Optional[typing.Optional[_winrt.UInt32]]
    @staticmethod
    def _from(obj: _winrt.Object) -> ContentRestrictionsBrowsePolicy: ...

class RatedContentDescription(_winrt.Object):
    title: str
    ratings: typing.Optional[winsdk.windows.foundation.collections.IVector[str]]
    image: typing.Optional[winsdk.windows.storage.streams.IRandomAccessStreamReference]
    id: str
    category: RatedContentCategory
    @staticmethod
    def _from(obj: _winrt.Object) -> RatedContentDescription: ...
    def __new__(cls: typing.Type[RatedContentDescription], id: str, title: str, category: RatedContentCategory) -> RatedContentDescription:...

class RatedContentRestrictions(_winrt.Object):
    @staticmethod
    def _from(obj: _winrt.Object) -> RatedContentRestrictions: ...
    @typing.overload
    def __new__(cls: typing.Type[RatedContentRestrictions], max_age_rating: _winrt.UInt32) -> RatedContentRestrictions:...
    @typing.overload
    def __new__(cls: typing.Type[RatedContentRestrictions]) -> RatedContentRestrictions:...
    def get_browse_policy_async(self) -> winsdk.windows.foundation.IAsyncOperation[ContentRestrictionsBrowsePolicy]: ...
    def get_restriction_level_async(self, rated_content_description: typing.Optional[RatedContentDescription]) -> winsdk.windows.foundation.IAsyncOperation[ContentAccessRestrictionLevel]: ...
    def request_content_access_async(self, rated_content_description: typing.Optional[RatedContentDescription]) -> winsdk.windows.foundation.IAsyncOperation[_winrt.Boolean]: ...
    def add_restrictions_changed(self, handler: winsdk.windows.foundation.EventHandler[_winrt.Object]) -> winsdk.windows.foundation.EventRegistrationToken: ...
    def remove_restrictions_changed(self, token: winsdk.windows.foundation.EventRegistrationToken) -> None: ...

