Home > Articles > Programming

Learning WatchKit Programming: Responding to User Actions

📄 Contents

  1. Using the Tap Gesture to Interact with Controls
  2. Summary
The UI of an Apple Watch application is represented by various controls (commonly known as views in iOS programming), and they are divided into two main categories: responding to user actions and displaying information. In this chapter from Learning WatchKit Programming: A Hands-On Guide to Creating watchOS 2 Applications, 2nd Edition, learn to use these controls to build the UI of your application.
This chapter is from the book
  • If you haven’t found it yet, keep looking. Don’t settle. As with all matters of the heart, you’ll know when you find it. And like any great relationship, it just gets better and better as the years roll on.
  • Steve Jobs

Designing the user interface (UI) for your Apple Watch application is similar to designing for the iPhone. However, space is at a premium on the Apple Watch, and every millimeter on the screen must be put to good use in order to convey the exact intention of your app.

The UI of an Apple Watch application is represented by various controls (commonly known as views in iOS programming), and they are divided into two main categories:

  • Responding to user actions: Users directly interact with these controls to perform some actions. Examples of such controls are Button, Switch, Slider, Picker, and Table.
  • Displaying information: These controls mainly display information to the user. Examples of such controls are Label, Image, and Table.

In this and the next chapter, you learn how to use these various controls to build the UI of your application.

Using the Tap Gesture to Interact with Controls

One key way to interact with the Apple Watch is to use the tap gesture. You can tap the following controls:

  • Button
  • Switch
  • Slider
  • Table

Let’s take a more detailed look at these objects!

Button

The Button control is the most direct way of interacting with an Apple Watch application. A button can display text as well as a background image. Tapping a button triggers an action on the Interface Controller where you can write the code to perform the appropriate action.

Adding a Button to an Interface Controller

In this section, you create a project that uses a Button control. Subsequent sections show you how to customize the button by creating an action for it and then displaying its title using custom fonts.

  1. Using Xcode, create a new iOS App with WatchKit App project and name it Buttons. Uncheck the option Include Notification Scene so that we can keep the WatchKit project to a bare minimum.
  2. Select the Interface.storyboard file to edit it in the Storyboard Editor.
  3. Drag and drop a Button control onto the storyboard, as shown in Figure 3.1.

    Figure 3.1

    Figure 3.1 Adding a Button control to the Interface Controller

  4. In the Attributes Inspector window, set the Title attribute to Play (see Figure 3.2).

    Figure 3.2

    Figure 3.2 Changing the title of the button

  5. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. You should see the button on the Apple Watch Simulator (see Figure 3.3). You can click it (or tap it on a real Apple Watch).

    Figure 3.3

    Figure 3.3 Testing the button on the Apple Watch Simulator

Creating an Action for a Button

For the Button control to do anything useful, you need to create an action for it so that when the user taps it, your application performs some actions. To create this action, follow these steps:

  1. In the Storyboard Editor, select the View | Assistant Editor | Show Assistant Editor menu item to show the InterfaceController.swift file.
  2. Control-click the Button control in the Interface Controller and drag it over the InterfaceController class (see Figure 3.4).

    Figure 3.4

    Figure 3.4 Creating an action for the button

  3. Create an action for the button and name it btnPlay (see Figure 3.5). Click Connect.

    Figure 3.5

    Figure 3.5 Naming the action

  4. You now see the action created in the InterfaceController.swift file:

    import WatchKit
    import Foundation
    
    class InterfaceController: WKInterfaceController {
    
        @IBAction func btnPlay() {
        }
  5. Add the following statement in bold to the InterfaceController.swift file:

        @IBAction func btnPlay() {
            print("The button was tapped!")
        }
  6. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. Click the Play button and observe the statement printed in the Output window (see Figure 3.6).

    Figure 3.6

    Figure 3.6 Clicking the button fires the action

Creating an Outlet for a Button

You can also programmatically change the title of the Button control during runtime. To do so, you need to create an outlet for the button:

  1. With the Assistant Editor shown, control-click the button and drag it over the InterfaceController.swift file. Name the outlet button1 (see Figure 3.7) and click Connect.

    Figure 3.7

    Figure 3.7 Creating an outlet for the button

  2. This creates an outlet in the InterfaceController.swift file:

    import WatchKit
    import Foundation
    
    class InterfaceController: WKInterfaceController {
    
        @IBOutlet var button1: WKInterfaceButton!
    
        @IBAction func btnPlay() {
            print("The button was tapped!")
        }
  3. Add the following statements in bold to the InterfaceController.swift file:

        override func awakeWithContext(context: AnyObject?) {
            super.awakeWithContext(context)
    
            // Configure interface objects here.
            button1.setTitle("Play Video")
        }
  4. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. You should now see the title of the button changed to “Play Video” (see Figure 3.8).

    Figure 3.8

    Figure 3.8 Changing the title of the button dynamically

Displaying Attributed Strings

The Button control supports attributed strings. Attributed strings allow you to specify different attributes (such as color, font, size, etc.) for different parts of a string. In the following steps, you display the title of the button using different colors:

  1. Add the following statements in bold to the InterfaceController.swift file:

        override func awakeWithContext(context: AnyObject?) {
            super.awakeWithContext(context)
    
            // Configure interface objects here.
    
            // button1.setTitle("Play Video")
            let str = NSMutableAttributedString(
                string: "Hello, Apple Watch!")
    
            //------display the Hello in yellow---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.yellowColor(),
                range: NSMakeRange(0, 5))
    
            //---display the , in red---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.redColor(),
                range: NSMakeRange(5, 1))
    
            //---display Apple Watch! in green---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.greenColor(),
                range: NSMakeRange(7, 12))
            button1.setAttributedTitle(str)
        }
  2. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. You should see the title of the button displayed in multiple colors, as shown in Figure 3.9 (readers of the print book will not see the colors in the figure).

    Figure 3.9

    Figure 3.9 Displaying the button title with mixed colors

Using Custom Fonts

Using attributed strings, you can also use different fonts for parts of a string. To illustrate this, let’s modify the example in the previous section to display part of the button’s title using a custom font.

For this example, use the Impact font that is installed on your Mac. The Impact font is represented using the Impact.ttf file located in the /Library/Fonts/ folder.

  1. Drag and drop a copy of the Impact.ttf file onto the Extension project in Xcode.
  2. You are asked to choose a few options. Select the options shown in Figure 3.10. This adds the Impact.ttf file onto the Extension and WatchKit App projects.

    Figure 3.10

    Figure 3.10 Adding the font file to the Extension and the WatchKit App

  3. Figure 3.11 shows the Impact.ttf file in the project.

    Figure 3.11

    Figure 3.11 The font file in the project

  4. Add a new key named UIAppFonts to the Info.plist file located in the Extension and set its Item 0 to Impact.ttf (see Figure 3.12).

    Figure 3.12

    Figure 3.12 Specifying the font filename in the Extension project

  5. Likewise, add a new key named UIAppFonts to the Info.plist file located in the WatchKit App and set its Item 0 to Impact.ttf (see Figure 3.13).

    Figure 3.13

    Figure 3.13 Specifying the font filename in the WatchKit app project

  6. Add the following statements in bold to the InterfaceController.swift file:

            override func awakeWithContext(context: AnyObject?) {
            super.awakeWithContext(context)
    
            // Configure interface objects here.
            // button1.setTitle("Play Video")
            let str = NSMutableAttributedString(
                string: "Hello, Apple Watch!")
    
            //---display the Hello in yellow---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.yellowColor(),
                range: NSMakeRange(0, 5))
    
            //---display Hello using the Impact font, size 22---
            str.addAttribute(NSFontAttributeName,
                value: UIFont(name: "Impact", size: 22.0)!,
                range: NSMakeRange(0, 5))
    
            //---display the , in red---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.redColor(),
                range: NSMakeRange(5, 1))
    
            //---display Apple Watch! in green---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.greenColor(),
                range: NSMakeRange(7, 12))
            button1.setAttributedTitle(str)
        }
  7. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. You should now see “Hello” displayed using the Impact font (see Figure 3.14).

    Figure 3.14

    Figure 3.14 Displaying “Hello” using a custom font

Changing the Background Image of Button

Besides displaying text, the Button control can also display a background image. The following exercise shows you how to add an image to the project and use it as the background of a button:

  1. Drag and drop the image named play.png onto the Assets.xcassets item in the WatchKit App (see Figure 3.16).

    Figure 3.16

    Figure 3.16 Adding an image to the project

  2. In the Attributes Inspector window for the play.png image, check the watchOS checkbox (see Figure 3.17, right). Then, move the play.png into the box labeled 2× (see Figure 3.17, middle). This signifies that this image will be displayed for all sizes of Apple Watch. If you want to use different images for the 38mm Apple Watch and the 42mm Apple Watch, you can drag and drop different images onto the boxes labeled “38 mm 2×” and “42 mm 2×.” For this example, you will use the same image for the two different watch sizes.

    Figure 3.17

    Figure 3.17 Specifying device-specific images to use

  3. In the InterfaceController.swift file, add the following statements in bold:

        override func awakeWithContext(context: AnyObject?) {
            super.awakeWithContext(context)
    
            // Configure interface objects here.
            // button1.setTitle("Play Video")
    
            /*
            let str = NSMutableAttributedString(
                string: "Hello, Apple Watch!")
    
            //---display the Hello in yellow---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.yellowColor(),
                range: NSMakeRange(0, 5))
    
            //---display Hello using the Impact font, size 22---
            str.addAttribute(NSFontAttributeName,
                value: UIFont(name: "Impact", size: 22.0)!,
                range: NSMakeRange(0, 5))
    
            //---display the , in red---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.redColor(),
                range: NSMakeRange(5, 1))
    
            //---display Apple Watch! in green---
            str.addAttribute(NSForegroundColorAttributeName,
                value: UIColor.greenColor(),
                range: NSMakeRange(7, 12))
            button1.setAttributedTitle(str)
            */
    
            button1.setBackgroundImageNamed("play")
        }
  4. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. You should now see the image on the button (see Figure 3.18).

    Figure 3.18

    Figure 3.18 Displaying an image on the button

    Do not use the setBackgroundImage: method by passing it a UIImage instance, like this:

            button1.setBackgroundImage(UIImage(named: "play"))

    This is because the UIImage class looks for the specified image (“play”) in the main bundle (the Extension). And because the play.png file is in the WatchKit App, the image cannot be found and, therefore, the image will not be set successfully.

  5. You can also set the background image of the button in the storyboard via the Background attribute in the Attributes Inspector window.

Switch

The Switch control allows the user to toggle between the ON and OFF states. It is commonly used in cases where you allow users to enable or disable a particular setting. In the following example, you will create a project and see how the Switch control works:

  1. Using Xcode, create a new iOS App with WatchKit App project and name it Switches. Uncheck the option Include Notification Scene so that we can keep the WatchKit project to a bare minimum.
  2. Select the Interface.storyboard file to edit it in the Storyboard Editor.
  3. Drag and drop a Switch control onto the default Interface Controller (see Figure 3.19).

    Figure 3.19

    Figure 3.19 Adding a Switch control to the Interface Controller

  4. In the Attributes Inspector window, set the Title attribute of the Switch control to Aircon (see Figure 3.20).

    Figure 3.20

    Figure 3.20 Changing the title of the Switch control

  5. Add a Label control to the Interface Controller (see Figure 3.21).

    Figure 3.21

    Figure 3.21 Adding a Label control to the Interface Controller

  6. Create an outlet for the Switch control and name it switch. Likewise, create an outlet for the Label control and name it label. Then, create an action for the Switch control and name it switchAction. The InterfaceController.swift file should now look like this:

    import WatchKit
    import Foundation
    
    class InterfaceController: WKInterfaceController {
    
        @IBOutlet var `switch`: WKInterfaceSwitch!
        @IBOutlet var label: WKInterfaceLabel!
        @IBAction func switchAction(value: Bool) {
        }
  7. Add the following statements in bold to the InterfaceController.swift file:

        @IBAction func switchAction(value: Bool) {
            value ? label.setText("Aircon is on") :
                label.setText("Aircon is off")
        }
    
        override func awakeWithContext(context: AnyObject?) {
            super.awakeWithContext(context)
    
            // Configure interface objects here.
            `switch`.setOn(false)
            label.setText("")
        }
  8. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. On the Apple Watch Simulator, click the Switch control to turn it on and off and observe the message printed in the Label control (see Figure 3.22).

    Figure 3.22

    Figure 3.22 Testing the Switch control

Slider

The Slider control is a visual control with two buttons (– and +) that allow the user to decrement or increment a floating-point value. It is usually used in situations where you want the user to select from a range of values, such as the temperature settings in a thermostat or the volume of the iPhone.

  1. Using Xcode, create a new iOS App with WatchKit App project and name it Sliders. Uncheck the option Include Notification Scene so that we can keep the WatchKit project to a bare minimum.
  2. Select the Interface.storyboard file to edit it in the Storyboard Editor.
  3. Drag and drop a Slider control onto the default Interface Controller (see Figure 3.23).

    Figure 3.23

    Figure 3.23 Adding a Slider control to the Interface Controller

  4. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. On the Apple Watch Simulator, click the + and buttons (see Figure 3.24) and observe the slider.

    Figure 3.24

    Figure 3.24 Testing the slider

  5. Add a Label control to the Interface Controller (see Figure 3.25).

    Figure 3.25

    Figure 3.25 Adding a label to the Interface Controller

  6. Create an outlet for the Slider control and name it slider. Likewise, create an outlet for the Label control and name it label. Then, create an action for the Slider control and name it sliderAction. The InterfaceController.swift file should now look like this:

    import WatchKit
    import Foundation
    
    class InterfaceController: WKInterfaceController {
    
        @IBOutlet var slider: WKInterfaceSlider!
        @IBOutlet var label: WKInterfaceLabel!
    
        @IBAction func sliderAction(value: Float) {
        }
  7. Set the attributes for the Slider control as follows (see Figure 3.26):

    Maximum: 10

    Steps: 5

    Figure 3.26

    Figure 3.26 Setting the attributes for the Slider control

  8. Add the following statements in bold to the InterfaceController.swift file:

        @IBAction func sliderAction(value: Float) {
            label.setText("\(value)")
        }
    
        override func awakeWithContext(context: AnyObject?) {
            super.awakeWithContext(context)
    
            // Configure interface objects here.
            slider.setValue(0.0)
            label.setText("0.0")
        }
  9. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. Click the and + buttons and observe the value printed on the Label control (see Figure 3.27).

    Figure 3.27

    Figure 3.27 Testing the slider

The Steps attribute specifies how many times you can click the slider to reach its maximum value. The increment or decrement value of the slider at any point is dependent on the length of the slider (Maximum value minus Minimum value) divided by the value of Steps. In this example, the length of the slider is 10 (maximum of 10 minus minimum of 0) and the value of Steps is 5; hence, the slider increments or decrements by 2 whenever the + or button is clicked.

Alerts and Action Sheets

In watchOS 2, Apple now allows developers to display alerts and actions just like they did in iPhone and iPad:

  1. Using Xcode, create a new iOS App with WatchKit App project and name it UsingAlerts. Uncheck the option Include Notification Scene so that we can keep the WatchKit project to a bare minimum.
  2. Select the Interface.storyboard file to edit it in the Storyboard Editor.
  3. Drag and drop a Button control onto the default Interface Controller (see Figure 3.28) and set its title to Show Alerts.

    Figure 3.28

    Figure 3.28 Adding a button to the Interface Controller

  4. Create an action for the Button control and name it btnShowAlerts. The InterfaceController.swift file should now look like this:

    import WatchKit
    import Foundation
    
    class InterfaceController: WKInterfaceController {
    
        @IBAction func btnShowAlerts() {
        }
  5. Add the following statements in bold to the InterfaceController.swift file:

    import WatchKit
    import Foundation
    
    class InterfaceController: WKInterfaceController {
    
        func performAction(actionStyle: WKAlertActionStyle) {
            switch actionStyle {
            case .Default:
                print("OK")
            case .Cancel:
                print("Cancel")
            case .Destructive:
                print("Destructive")
            }
        }
    
        @IBAction func btnShowAlerts() {
            let okAction = WKAlertAction(title: "OK",
                style: WKAlertActionStyle.Default) { () -> Void in
                    self.performAction(WKAlertActionStyle.Default)
            }
    
            let cancelAction = WKAlertAction(title: "Cancel",
                style: WKAlertActionStyle.Cancel) { () -> Void in
                    self.performAction(WKAlertActionStyle.Cancel)
            }
    
            let abortAction = WKAlertAction(title: "Abort",
                style: WKAlertActionStyle.Destructive) { () -> Void in
                    self.performAction(WKAlertActionStyle.Destructive)
            }
    
            presentAlertControllerWithTitle("Title",
                message: "Message",
                preferredStyle: WKAlertControllerStyle.Alert,
                actions: [okAction, cancelAction, abortAction])
        }

    Here, you first defined a function named performAction: that prints out a message depending on the style that is passed in as the argument. Next, in the btnShowAlerts action, you created three WKAlertAction instances, each with a specific style (Default, Cancel, and Destructive). Within each instance, you have a closure that is fired when the user clicks on the action buttons. When each button is clicked, you simply call the performAction: function to print out a message so that you know which button was clicked. Finally, you called the presentAlertControllerWithTitle:message:preferredStyle:actions: method to display an alert, together with the three action buttons.

  6. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. Clicking the button displays an alert (see Figure 3.29).

    Figure 3.29

    Figure 3.29 Displaying an alert in the Apple Watch

  7. Modify the presentAlertControllerWithTitle:message:preferredStyle:actions: method, as follows:

            //---SideBySideButtonsAlert supports exactly two actions---
            presentAlertControllerWithTitle("Title",
                message: "Message",
                preferredStyle:
                    WKAlertControllerStyle.SideBySideButtonsAlert,
                actions: [okAction, cancelAction])
  8. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. Clicking the button displays an alert with the two buttons displayed side by side (see Figure 3.30).

    Figure 3.30

    Figure 3.30 Displaying an alert with two buttons side by side in the Apple Watch

  9. Modify the presentAlertControllerWithTitle:message:preferredStyle:actions: method as follows:

            presentAlertControllerWithTitle("Title",
                message: "Message",
                preferredStyle: WKAlertControllerStyle.ActionSheet,
                actions: [okAction, cancelAction, abortAction])
  10. Select the WatchKit App scheme and run the project on the Apple Watch Simulator. Clicking the button displays an alert, as shown in Figure 3.31.

    Figure 3.31

    Figure 3.31 Displaying an action sheet in the Apple Watch

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020