SocialServiceクラス

クラスサービス(game:GetService("SocialService")で取り出す)Instance.newでは作れない日本語解説は準備中

ひとことで言うと

SocialServiceは、ロブロックス(Roblox)のクラスです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。

公式の説明(英語):Facilitates social functions that impact relationships made on the Roblox platform.

クラスの関係

受け継いでいるクラス:Object → Instance → SocialService

メソッド(14)

名前と書き方説明
CanSendCallInviteAsync
SocialService:CanSendCallInviteAsync(player: Instance): boolean
Indicates whether the given Player can invite other players to a call.
CanSendGameInviteAsync
SocialService:CanSendGameInviteAsync(player: Instance, recipientId: User): boolean
Indicates whether the given Player can invite other players.
GetEventRsvpStatusAsync
SocialService:GetEventRsvpStatusAsync(eventId: string): RsvpStatus
Returns the local player's RSVP status for the given event.
GetExperienceEventAsync
SocialService:GetExperienceEventAsync(eventId: string): ExperienceEvent?
Returns details for the specified experience event or nil if it is unavailable.
GetPartyAsync
SocialService:GetPartyAsync(partyId: string): Array
Returns an array of dictionaries containing data for all members of the specified party who are currently in the experience.
GetPlayersByPartyId
SocialService:GetPlayersByPartyId(partyId: string): List<Player>
Returns a table of all presently connected Player objects whose Player.PartyId property matches the passed partyId.
GetUpcomingExperienceEventsAsync
SocialService:GetUpcomingExperienceEventsAsync(): List<ExperienceEvent>
Returns active and upcoming experience events for the current experience.
HideSelfView
SocialService:HideSelfView(): ()
Hides the calling player's self view.
PromptFeedbackSubmissionAsync
SocialService:PromptFeedbackSubmissionAsync(options: Dictionary?): ()
Prompts the player to submit feedback or a player support ticket about the current experience.
PromptGameInvite
SocialService:PromptGameInvite(player: Instance, experienceInviteOptions: Instance): ()
Prompts the given Player with the invite screen.
PromptLinkSharingAsync
SocialService:PromptLinkSharingAsync(player: Player, options: Dictionary): Tuple
Generates an expiring share link and prompts the given Player with the platform share sheet.
PromptPhoneBook
SocialService:PromptPhoneBook(player: Instance, tag: string): ()
Prompts the given Player with the phone book.
PromptRsvpToEventAsync
SocialService:PromptRsvpToEventAsync(eventId: string): RsvpStatus
Prompts the local Player with a prompt to change their RSVP status to the given event.
ShowSelfView
SocialService:ShowSelfView(selfViewPosition: SelfViewPosition): ()
Shows the calling player's self view.

イベント(4)

名前と書き方説明
CallInviteStateChanged
SocialService.CallInviteStateChanged(player: Instance, inviteState: InviteState)
Fires when a player's call invite state changes.
GameInvitePromptClosed
SocialService.GameInvitePromptClosed(player: Instance, recipientIds: Array)
Fires when a player closes an invite prompt.
PhoneBookPromptClosed
SocialService.PhoneBookPromptClosed(player: Instance)
Fires when a player closes the phone book prompt.
ShareSheetClosed
SocialService.ShareSheetClosed(player: Player)
Fires when the player closes the share sheet opened by Class.SocialService:PromptLinkSharingAsync()|PromptLinkSharingAsync().

コールバック(1)

名前と書き方説明
OnCallInviteInvoked
SocialService:OnCallInviteInvoked(tag: string, callParticipantIds: Array): Instance
Callback for when a call is placed from the phone book.

受け継いでいるメンバー

Instance から受け継いでいるもの(46)

Archivable・Capabilities・IsInSandbox・Name・Parent・PredictionMode・Sandboxed・AddTag・ClearAllChildren・Clone・Destroy・FindFirstAncestor・FindFirstAncestorOfClass・FindFirstAncestorWhichIsA・FindFirstChild・FindFirstChildOfClass・FindFirstChildWhichIsA・FindFirstDescendant・GetActor・GetAttribute・GetAttributeChangedSignal・GetAttributes・GetChildren・GetDebugId・GetDescendants・GetFullName・GetStyled・GetStyledPropertyChangedSignal・GetTags・HasTag・IsAncestorOf・IsDescendantOf・IsPropertyModified・QueryDescendants・RemoveTag・ResetPropertyToDefault・SetAttribute・WaitForChild・AncestryChanged・AttributeChanged・ChildAdded・ChildRemoved・DescendantAdded・DescendantRemoving・Destroying・StyledPropertiesChanged

Object から受け継いでいるもの(4)

ClassName・GetPropertyChangedSignal・IsA・Changed

英語の説明とメンバーの一覧は、Roblox Creator Documentation(SocialService)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。

執筆:鈴木孝昌官公庁のWeb・システム開発を担当する現役プロジェクトマネージャー。沖縄マイクラ部 クロスウェーブで、ロブロックス(Roblox)・マインクラフト(マイクラ)・Scratchなどのプログラミングを指導。マイクラカップ沖縄代表チームを指導(第6回・第7回、第7回TBS賞)。
沖縄マイクラ部で、子どもたちにロブロックス(Roblox)やマインクラフト(マイクラ)のプログラミングを教えています。プロフィールと編集方針
Instagramで教室の様子を見る
noteで記事を読む