AudioPages

사용되지 않는 항목 표시
만들 수 없음
복제되지 않음

A special version of the Pages class returned by AssetService:SearchAudio(). See the following code sample for reference on the returned data format.

코드 샘플

Getting Music Search Titles

local AssetService = game:GetService("AssetService")
local audioSearchParams = Instance.new("AudioSearchParams")
audioSearchParams.SearchKeyword = "happy"
local success, result = pcall(function()
return AssetService:SearchAudio(audioSearchParams)
end)
if success then
local currentPage = result:GetCurrentPage()
for _, audio in currentPage do
print(audio.Title)
end
else
warn("AssetService error: " .. result)
end
--[[ Returned data format
{
"AudioType": string,
"Artist": string,
"Title": string,
"Tags": {
"string"
},
"Id": number,
"IsEndorsed": boolean,
"Description": string,
"Duration": number,
"CreateTime": string,
"UpdateTime": string,
"Creator": {
"Id": number,
"Name": string,
"Type": number,
"IsVerifiedCreator": boolean
}
}
--]]

요약

속성

속성Pages에서 상속되었습니다
  • 읽기 전용
    복제되지 않음
    병렬 읽기

    Whether or not the current page is the last page available.

메서드

메서드Pages에서 상속되었습니다
  • Returns the items on the current page. The keys in the item are determined by the source of this object.

  • Iterates to the next page in the pages object, if possible.

속성

메서드

이벤트