Enable social features to enhance player engagement by allowing them to share, join communities, invite friends, and more.
Share
Use this to allow players to share game content or achievements on social media platforms.
Bridge.social.is_share_supported
Check if the share feature is supported on the platform.
func _ready():
var options
match Bridge.platform.id:
"vk":
options = {
"link": "YOUR_LINK"
}
"facebook":
options = {
"image": "A base64 encoded image to be shared",
"text": "A text message to be shared"
}
"msn":
options = {
"title": "A title to display",
"image": "A base64 encoded image or image URL to be shared",
"text": "A text message to be shared"
}
Bridge.social.share(options, funcref(self, "_on_share_completed"))
func _on_share_completed(success):
print(success)
func _ready():
var options
match Bridge.platform.id:
"vk":
options = {
"link": "YOUR_LINK"
}
"facebook":
options = {
"image": "A base64 encoded image to be shared",
"text": "A text message to be shared"
}
"msn":
options = {
"title": "A title to display",
"image": "A base64 encoded image or image URL to be shared",
"text": "A text message to be shared"
}
Bridge.social.share(options, Callable(self, "_on_share_completed"))
func _on_share_completed(success):
print(success)
Join Community
Enable players to join social communities related to your game, enhancing engagement and loyalty.
Bridge.social.is_join_community_supported
Check if the join community feature is supported on the platform.