---
title: "init(languageOptions:defaultLanguageOption:allowEmptySelection:)"
framework: mediaplayer
role: symbol
role_heading: Initializer
path: "mediaplayer/mpnowplayinginfolanguageoptiongroup/init(languageoptions:defaultlanguageoption:allowemptyselection:)"
---

# init(languageOptions:defaultLanguageOption:allowEmptySelection:)

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

## Declaration

```swift
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

Return Value A newly created language option group with the passed attributes.
