|Import Statement:||import VPlay 2.0|
This type is the base type for all social page like SocialView::profilePage or SocialView::leaderboardPage. It can also be used to create custom SocialView pages that have easy access to the projects SocialView, VPlayGameNetwork and VPlayMultiplayer items.
Each social page automatically shows an ActivityIndicatorBarItem as Page::rightBarItem whenever the social view has pending VPlayGameNetwork requests. Overwrite the default item to replace it with another item. To show a custom loading indicator, the SocialView::isLoading property allows to access the current loading state.
It is sufficient to specify the SocialPage::socialViewItem for a custom page, which also makes the configured gameNetworkItem and multiplayerItem available. By default, the item with id
socialView is used.
gameNetworkItem : var
Allows to access the configured SocialView::gameNetworkItem from within the page.
multiplayerItem : var
Allows to access the configured SocialView::multiplayerItem from within the page. This can be undefined, if no multiplayer item is available.
socialViewItem : var
This property holds a reference to the SocialView item the page should work with. It allows to quickly access the SocialView item from within the page. This property is automatically set for the default social pages like SocialView::profilePage.
For custom social pages, the item with id
socialView is used if available. Otherwise the property is
undefined. Overwrite this property to use your custom SocialView item.
Voted #1 for: