本文整理汇总了C++中IOnlineSubsystem::GetSharingInterface方法的典型用法代码示例。如果您正苦于以下问题:C++ IOnlineSubsystem::GetSharingInterface方法的具体用法?C++ IOnlineSubsystem::GetSharingInterface怎么用?C++ IOnlineSubsystem::GetSharingInterface使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IOnlineSubsystem
的用法示例。
在下文中一共展示了IOnlineSubsystem::GetSharingInterface方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Test
void FTestSharingInterface::Test(bool bWithImage)
{
UE_LOG(LogOnline, Verbose, TEXT("FTestSharingInterface::Test"));
IOnlineSubsystem* OnlineSub = IOnlineSubsystem::Get(FName(*SubsystemName));
check(OnlineSub);
SharingInterface = OnlineSub->GetSharingInterface();
check(SharingInterface.IsValid());
TestStatusUpdate.Message = TEXT("This is a test post for UE4 Facebook support!!");
TestStatusUpdate.PostPrivacy = EOnlineStatusUpdatePrivacy::OnlyMe;
if( bWithImage )
{
TestStatusUpdate.Image = new FImage( 256, 256, ERawImageFormat::BGRA8, false );
}
// Kick off the first part of the test,
RequestPermissionsToSharePosts();
}
示例2: Test
void FTestSharingInterface::Test(UWorld* InWorld, bool bWithImage)
{
UE_LOG(LogOnline, Verbose, TEXT("FTestSharingInterface::Test"));
IOnlineSubsystem* OnlineSub = Online::GetSubsystem(InWorld, FName(*SubsystemName));
check(OnlineSub);
SharingInterface = OnlineSub->GetSharingInterface();
check(SharingInterface.IsValid());
TestStatusUpdate.Message = FString::Printf(TEXT("This is a test post for UE4 Sharing support! Date = %s"), *FDateTime::Now().ToString());
TestStatusUpdate.PostPrivacy = EOnlineStatusUpdatePrivacy::OnlyMe;
if( bWithImage )
{
TestStatusUpdate.Image = new FImage( 256, 256, ERawImageFormat::BGRA8, EGammaSpace::Linear );
}
// Kick off the first part of the test,
RequestPermissionsToSharePosts();
}