---
title: STWebpageController
framework: Screen Time
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, macOS 11.0+]
path: screentime/stwebpagecontroller
---

# STWebpageController

The controller you use to report web usage and block restricted webpages.

## Declaration

```swift
class STWebpageController
```

## Overview

Overview This class provides a convenient way for you to communicate changes in each webpage, such as when the user starts or stops playing media. When a parent or guardian of the user blocks the webpage’s current URL, the webpage controller: Automatically occludes the web page’s content Updates a KVO-compliant urlIsBlocked property For example, you can observe urlIsBlocked and take action when it changes to YES, such as pausing media. important: Create a webpage controller for each webpage or tab and add it on top of the webpage’s content.

## Topics

### Instance properties

- [suppressUsageRecording](screentime/stwebpagecontroller/suppressusagerecording.md)
- [url](screentime/stwebpagecontroller/url.md)
- [urlIsBlocked](screentime/stwebpagecontroller/urlisblocked.md)
- [urlIsPictureInPicture](screentime/stwebpagecontroller/urlispictureinpicture.md)
- [urlIsPlayingVideo](screentime/stwebpagecontroller/urlisplayingvideo.md)

### Instance methods

- [setBundleIdentifier(_:)](screentime/stwebpagecontroller/setbundleidentifier(_:).md)

### Instance Properties

- [profileIdentifier](screentime/stwebpagecontroller/profileidentifier.md)

## Relationships

### Inherits From

- [NSViewController](appkit/nsviewcontroller.md)
- [UIViewController](uikit/uiviewcontroller.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSEditor](appkit/nseditor.md)
- [NSExtensionRequestHandling](foundation/nsextensionrequesthandling.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSeguePerforming](appkit/nssegueperforming.md)
- [NSStandardKeyBindingResponding](appkit/nsstandardkeybindingresponding.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [NSUserActivityRestoring](appkit/nsuseractivityrestoring.md)
- [NSUserInterfaceItemIdentification](appkit/nsuserinterfaceitemidentification.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UIAppearanceContainer](uikit/uiappearancecontainer.md)
- [UIContentContainer](uikit/uicontentcontainer.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIStateRestoring](uikit/uistaterestoring.md)
- [UITraitChangeObservable](uikit/uitraitchangeobservable-67e94.md)
- [UITraitEnvironment](uikit/uitraitenvironment.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)
