Timeline Studio API Documentation - v0.26.0
Preparing search index...
features/export/hooks/use-social-export
useSocialExport
Function useSocialExport
useSocialExport
()
:
{
getNetworkLimits
:
(
networkId
:
string
)
=>
SocialNetworkLimits
;
getOptimalSettings
:
(
networkId
:
string
)
=>
Partial
<
SocialExportSettings
>
;
getUserInfo
:
(
network
:
string
)
=>
any
;
isLoggedIn
:
(
network
:
string
)
=>
Promise
<
boolean
>
;
isUploading
:
boolean
;
loginToSocialNetwork
:
(
network
:
string
)
=>
Promise
<
boolean
>
;
logoutFromSocialNetwork
:
(
network
:
string
)
=>
Promise
<
void
>
;
uploadProgress
:
number
;
uploadToSocialNetwork
:
(
videoPath
:
string
,
settings
:
SocialExportSettings
,
)
=>
Promise
<
SocialUploadResult
>
;
validateSocialExport
:
(
settings
:
SocialExportSettings
,
videoFile
?:
{
duration
:
number
;
format
:
string
;
size
:
number
}
,
)
=>
|
{
error
:
string
;
errors
?:
undefined
;
suggestions
?:
undefined
;
valid
:
boolean
;
warnings
?:
undefined
;
}
|
{
error
:
string
;
errors
:
string
[]
;
suggestions
:
string
[]
;
valid
:
boolean
;
warnings
:
string
[]
;
}
|
{
error
?:
undefined
;
errors
?:
undefined
;
suggestions
:
string
[]
;
valid
:
boolean
;
warnings
:
string
[]
;
}
;
}
Returns
{
getNetworkLimits
:
(
networkId
:
string
)
=>
SocialNetworkLimits
;
getOptimalSettings
:
(
networkId
:
string
)
=>
Partial
<
SocialExportSettings
>
;
getUserInfo
:
(
network
:
string
)
=>
any
;
isLoggedIn
:
(
network
:
string
)
=>
Promise
<
boolean
>
;
isUploading
:
boolean
;
loginToSocialNetwork
:
(
network
:
string
)
=>
Promise
<
boolean
>
;
logoutFromSocialNetwork
:
(
network
:
string
)
=>
Promise
<
void
>
;
uploadProgress
:
number
;
uploadToSocialNetwork
:
(
videoPath
:
string
,
settings
:
SocialExportSettings
,
)
=>
Promise
<
SocialUploadResult
>
;
validateSocialExport
:
(
settings
:
SocialExportSettings
,
videoFile
?:
{
duration
:
number
;
format
:
string
;
size
:
number
}
,
)
=>
|
{
error
:
string
;
errors
?:
undefined
;
suggestions
?:
undefined
;
valid
:
boolean
;
warnings
?:
undefined
;
}
|
{
error
:
string
;
errors
:
string
[]
;
suggestions
:
string
[]
;
valid
:
boolean
;
warnings
:
string
[]
;
}
|
{
error
?:
undefined
;
errors
?:
undefined
;
suggestions
:
string
[]
;
valid
:
boolean
;
warnings
:
string
[]
;
}
;
}
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
Timeline Studio API Documentation - v0.26.0
Loading...