(Create page and begin initial documentation) |
Andrewwiik (talk | contribs) No edit summary |
||
Line 6: | Line 6: | ||
</source> | </source> | ||
Creating a MPUtransportControl requires knowing the type of button you want and the group where you want it displayed | 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"> |
Revision as of 01:30, 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