Questions tagged [control-center]

The Control Center is a feature on iOS which allows quick access to various functions and settings of iOS. On iOS 11 you can open it by swiping from bottom to top on any screen.

Links:

73 questions
53
votes
5 answers

Is there a public way to force MPNowPlayingInfoCenter to show podcast controls?

I would like Control Center (via MPNowPlayingInfoCenter) to show the forward 15 seconds / back 15 seconds controls that Apple shows with podcasts, like so: The utter lack of documentation tells me that there's no obvious way to do this, but has…
DesignatedNerd
  • 2,474
  • 1
  • 23
  • 43
29
votes
3 answers

Is it possible to disable Control Center in iOS 7 programmatically and if not, what are alternatives?

I have developed an app that uses swipe gesture from bottom up. It was working perfectly in iOS 6, but now iOS 7 came out, and it works maybe 1 out of 25 times: i get iOS 7 Control Center almost every time. Obviously, Control Center can be disabled…
mike.tihonchik
  • 6,367
  • 3
  • 29
  • 45
17
votes
4 answers

Cannot open iPhone Control Center on simulator

I'm new to iOS coming from Android. I try to run simulator and open the Control Center on it. When I swipe from the bottom to up I see that it's empty. Any ideas what's going on with my simulator? I tried at iPhoneX simulator and have the same.
Vitalii
  • 7,565
  • 13
  • 53
  • 114
13
votes
7 answers

Access iOS Control Center using appium

I am trying to open the Control Center using appium and the following code: int halfWidth = driver.manage().window().getSize().width / 2; int screenHeight = driver.manage().window().getSize().height; driver.swipe(halfWidth,…
Charlie Seligman
  • 3,508
  • 4
  • 50
  • 84
13
votes
1 answer

How does Spotify customize the media playback controls on iOS?

Spotify on iOS has a very interesting Control Center integration. Notice the hamburger button below. The same thing is on the lock screen! How do they do those? Is there an API in MPMediaCenter or something?
Moshe
  • 55,729
  • 73
  • 263
  • 420
11
votes
3 answers

How to change track position on lock screen/control center?

When playing a song with the ios 7 music app the user can use slider to change song position in the lock screen/the control center. Slider is active: But when playing music in my app user can't do it. Slider isn't active: How can i enable these…
Neiman Aleksei
  • 835
  • 1
  • 8
  • 12
10
votes
4 answers

how to show seek track duration on control center

How do i pass the song info such as song name and track duration to control center. Player plays music fine and the play and pause control works fine though. Playing with apple's music app Playing with my app with the code below, how to pass song…
Desmond
  • 4,943
  • 14
  • 51
  • 112
8
votes
2 answers

How to implement seeking from ControlCenter?

I'm trying to implement support for the playback controls available in Control Center. For play/pause etc I'm handling UIEventTypeRemoteControl events and looking for subtype UIEventSubtypeRemoteControlPlay / UIEventSubtypeRemoteControlPause,…
Roland Rabien
  • 8,368
  • 7
  • 44
  • 66
7
votes
2 answers

How to use Stop button in iOS control center instead of pause button with swift

I want to build a radio app and so I would like to use the stop button instead of the pause button in the control center like Apple Radio does in the native music app : Here is what I did in my RadioPlayer class : private var shoutcastStream =…
David
  • 4,490
  • 6
  • 31
  • 54
6
votes
1 answer

Programmatically show Control Center ios

Is there any API to show(swipe-up) the control center programmatically in app?
SandeepAggarwal
  • 1,158
  • 3
  • 13
  • 32
6
votes
1 answer

How to hide "Now playing url" in control center

I am trying to hide livestream urls that are playing in an UIWebView. When you play a livestream url and open control center (iOS) you see the url that is playing: . I would like to hide that with a HTML-based or xcode-based script.
Joost
  • 85
  • 8
5
votes
1 answer

Integrating AirPlay to iOS app in Swift

I want to cast a radio stream through AirPlay (to an AppleTV). I've researched a lot related to this topic, but I found the documentation really poor. This is the Apple documentation for AirPlay 2:…
anitteb
  • 622
  • 10
  • 19
5
votes
1 answer

AudioPlayer and lockscreen/control center control Swift

I'm new on Swift. I write because I want to ask a question. Me and my friend we are developing an audio player, but we have a problem. The player also works in background and remote controls from the lockscreen and the control center work, but if…
5
votes
1 answer

Update MPRemoteCommandCenter play/pause button

I have an iOS 9 app that plays MIDI-like songs using an AudioGraph. I've set up remote control commands with MPRemoteCommandCenter and info with MPNowPlayingInfoCenter such that the currently playing song shows up in Control Center and responds to…
Jayson
  • 1,419
  • 12
  • 24
5
votes
1 answer

Get current track playing on control center iOS

I'm looking to get the current track playing on iOS whatever the app which is playing the track. I mean, for example, if I use SoundCloud or Spotify on my phone, the player on control center is the same, so I think it's possible to get the current…
testoverblaireau
  • 159
  • 5
  • 19
1
2 3 4 5