MPUTransportControl: Difference between revisions

From iPhone Development Wiki
No edit summary
mNo edit summary
 
Line 1: Line 1:
[[MPUTransportControl]] is a class which is used when displaying a MPUControlCenterTransportButton
[[MPUTransportControl]] is a class which is used when displaying a MPUControlCenterTransportButton


<source lang="objc">
<source lang="objc">
Line 7: Line 6:


Creating a MPUtransportControl requires knowing the type of button you want and the group where you want it displayed, tested on iOS 9 and 10
Creating a MPUtransportControl requires knowing the type of button you want and the group where you want it displayed, tested on iOS 9 and 10


<source lang="objc">
<source lang="objc">
Line 33: Line 31:
// 3 Right
// 3 Right
</source>
</source>
{{occlass|library=MPUFoundation.framework|navbox=1}}

Latest revision as of 01:42, 24 December 2016

MPUTransportControl is a class which is used when displaying a MPUControlCenterTransportButton

MPUTransportControl *transportControl = [[NSClassFromString(@"MPUTransportControl") alloc] initWithType:9 group:3];

Creating a MPUtransportControl requires knowing the type of button you want and the group where you want it displayed, tested on iOS 9 and 10

// Type's

// 0 none
// 1 Rewind
// 2 15 sec rewind
// 3 Play
// 4 Forward
// 5 15 sec forward
// 6 Hamburger menu - does nothing
// 7 Show up next - no image - does nothing
// 8 Share button - has image does nothing
// 9 Repeat - No Image but works - manually set image if desired
// 10 Shuffl - No Image but works - manually set image if desired
// 11 Contextual Menu - No Image - Haven't tested
// 12 Playback rate - No Image - Haven't tested
// 13 sleep timer - No image - Haven't tested
// 14 Add to library - No image - Haven't tested

// Group
// 1 Left
// 2 Middle
// 3 Right