SpringBoardHome.framework: Difference between revisions

From iPhone Development Wiki
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 5: Line 5:
}}
}}


'''SpringBoardHome''' is a framework that provides classes to deal with Homescreen Icon List elements in SpringBoard.  
'''SpringBoardHome''' is a framework that provides classes to deal with Homescreen Icon List elements in SpringBoard.


Many of the classes dealing with icons that were previously contained in SpringBoard itself were moved here. It appears that the majority of classes dealing with the "Home Screen," a la Icons, the sidebar, etc. are being moved to this framework.
Many of the classes dealing with icons that were previously contained in SpringBoard itself were moved here. It appears that the majority of classes dealing with the "Home Screen," a la Icons, the sidebar, etc. are being moved to this framework.


More classes were moved to this framework with iOS 14, and it appears to have "taken the reins" in regards to icon placement and movement.  
More classes were moved to this framework with iOS 14, and it appears to have "taken the reins" in regards to icon placement and movement.


*  [https://developer.limneos.net/?ios=13.1.3&framework=SpringBoardHome.framework iOS 13 Headers]
== Screen Type ==


Apple represents types of screens of all iOS/iPadOS devices as an integer. By reversing the function <code>SBHStringForScreenType</code>, we can derive all the values:
<source lang="objc">
typedef NS_ENUM(NSInteger, SBHScreenType) {
    SBHScreenTypeiPhone5 = 0,
    SBHScreenTypeiPhone6 = 1,
    SBHScreenTypeiPhone6Plus = 2,
    SBHScreenTypeiPhoneX = 3,
    SBHScreenTypeiPhoneXZoomed = 4,
    SBHScreenTypeiPhoneXsMax = 5,
    SBHScreenTypeiPhoneXsMaxZoomed = 6,
    SBHScreenTypeiPhoneXr = 7,
    SBHScreenTypeiPhoneXrZoomed = 8,
    SBHScreenTypeiPhone12Mini = 9,
    SBHScreenTypeiPhone12MiniZoomed = 10,
    SBHScreenTypeiPhone12 = 11,
    SBHScreenTypeiPhone12Zoomed = 12,
    SBHScreenTypeiPhone12ProMax = 13,
    SBHScreenTypeiPhone12ProMaxZoomed = 14,
    SBHScreenTypeiPad3 = 15,
    SBHScreenTypeiPadMini2 = 16,
    SBHScreenTypeiPad7 = 17,
    SBHScreenTypeiPadPro1 = 18,
    SBHScreenTypeiPadPro2 = 19,
    SBHScreenTypeiPadAir4 = 20,
    SBHScreenTypeiPadPro3 = 21,
    SBHScreenTypeiPadPro3Large = 22,
    SBHScreenTypeiPadPro3LargeZoomed = 23
};
</source>
{{Navbox Classes}}
{{Navbox Frameworks}}
{{Navbox Frameworks}}

Latest revision as of 07:45, 4 September 2023

SpringBoardHome.framework
Private Framework
Availabile 13.0 – present
Class Prefix SB / SBH
Headers [headers.cynder.me]


SpringBoardHome is a framework that provides classes to deal with Homescreen Icon List elements in SpringBoard.

Many of the classes dealing with icons that were previously contained in SpringBoard itself were moved here. It appears that the majority of classes dealing with the "Home Screen," a la Icons, the sidebar, etc. are being moved to this framework.

More classes were moved to this framework with iOS 14, and it appears to have "taken the reins" in regards to icon placement and movement.

Screen Type

Apple represents types of screens of all iOS/iPadOS devices as an integer. By reversing the function SBHStringForScreenType, we can derive all the values:

typedef NS_ENUM(NSInteger, SBHScreenType) {
    SBHScreenTypeiPhone5 = 0,
    SBHScreenTypeiPhone6 = 1,
    SBHScreenTypeiPhone6Plus = 2,
    SBHScreenTypeiPhoneX = 3,
    SBHScreenTypeiPhoneXZoomed = 4,
    SBHScreenTypeiPhoneXsMax = 5,
    SBHScreenTypeiPhoneXsMaxZoomed = 6,
    SBHScreenTypeiPhoneXr = 7,
    SBHScreenTypeiPhoneXrZoomed = 8,
    SBHScreenTypeiPhone12Mini = 9,
    SBHScreenTypeiPhone12MiniZoomed = 10,
    SBHScreenTypeiPhone12 = 11,
    SBHScreenTypeiPhone12Zoomed = 12,
    SBHScreenTypeiPhone12ProMax = 13,
    SBHScreenTypeiPhone12ProMaxZoomed = 14,
    SBHScreenTypeiPad3 = 15,
    SBHScreenTypeiPadMini2 = 16,
    SBHScreenTypeiPad7 = 17,
    SBHScreenTypeiPadPro1 = 18,
    SBHScreenTypeiPadPro2 = 19,
    SBHScreenTypeiPadAir4 = 20,
    SBHScreenTypeiPadPro3 = 21,
    SBHScreenTypeiPadPro3Large = 22,
    SBHScreenTypeiPadPro3LargeZoomed = 23
};