SocialPage

Base type for pages used together with SocialView. More...

Import Statement: import VPlay 2.0
Since: V-Play 2.14.1
Inherits:

Page

Inherited By:

SocialUserSearchPage

Properties

Detailed Description

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.

Property Documentation

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:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support