当前位置: 首页>>代码示例>>C++>>正文


C++ IOnlineSubsystem::GetSharingInterface方法代码示例

本文整理汇总了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();
}
开发者ID:Tigrouzen,项目名称:UnrealEngine-4,代码行数:20,代码来源:TestSharingInterface.cpp

示例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();
}
开发者ID:frobro98,项目名称:UnrealSource,代码行数:20,代码来源:TestSharingInterface.cpp


注:本文中的IOnlineSubsystem::GetSharingInterface方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。