<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.2 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPNowPlayingInfoLanguageOptionGroup/init(languageOptions:defaultLanguageOption:allowEmptySelection:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPNowPlayingInfoLanguageOptionGroup(im)initWithLanguageOptions:defaultLanguageOption:allowEmptySelection:"
  },
  "title" : "init(languageOptions:defaultLanguageOption:allowEmptySelection:)"
}
-->

# init(languageOptions:defaultLanguageOption:allowEmptySelection:)

Creates a new language option group with the supplied language options.

```
init(languageOptions: [MPNowPlayingInfoLanguageOption], defaultLanguageOption: MPNowPlayingInfoLanguageOption?, allowEmptySelection: Bool)
```

## Parameters

`languageOptions`

An array containing the language options to associate with the language option group.

`defaultLanguageOption`

The default language option for the group. Set this parameter to <doc://com.apple.documentation/documentation/ObjectiveC/nil-227m0> to denote there’s no default language option.

`allowEmptySelection`

A Boolean that indicates whether the system requires a selection for the language option group.

## Return Value

A newly created language option group with the passed attributes.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)