با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
این راهنما نحوه ادغام نظرات درون برنامه ای را با استفاده از Unreal Engine در برنامه خود توضیح می دهد. اگر از Kotlin یا Java ، کد بومی یا Unity استفاده می کنید، راهنماهای ادغام جداگانه ای وجود دارد.
نمای کلی Unreal Engine SDK
Play In-App Reviews API بخشی از خانواده Play Core SDK است. API برای Unreal Engine یک کلاس UInAppReviewsManager برای درخواست و راهاندازی جریان با استفاده از روشهای RequestReviewFlow و LaunchReviewFlow ارائه میکند. پس از درخواست، برنامه شما میتواند وضعیت درخواست را با استفاده از EInAppReviewErrorCode بررسی کند.
پشتیبانی از نسخه های Unreal Engine
این افزونه از Unreal Engine 5.0 و تمامی نسخه های بعدی پشتیبانی می کند.
دستورالعملهای مربوط به زمان درخواست بررسی درونبرنامهای را دنبال کنید تا نکات خوبی را در جریان کاربر برنامهتان تعیین کنید تا کاربر را برای بازبینی وادار کند (به عنوان مثال، پس از اینکه کاربر صفحه خلاصهای را در پایان یک سطح در بازی رد کرد). هنگامی که برنامه شما به یکی از این نقاط نزدیک شد، از UInAppReviewsManager برای ایجاد عملیات استفاده کنید، همانطور که در مثال زیر نشان داده شده است:
voidMyClass::RequestReviewFlow(){// Create a delegate to bind the callback function.FReviewOperationCompletedDelegateDelegate;// Bind the completion handler (OnReviewOperationCompleted) to the delegate.Delegate.BindDynamic(this,&MyClass::OnReviewOperationCompleted);// Initiate the review flow, passing the delegate to handle the result.GetGameInstance()->GetSubsystem<UInAppReviewsManager>()->RequestReviewFlow(Delegate);}
این روش یک FRreviewOperationCompletedDelegate ایجاد می کند تا عملیات بررسی را انجام دهد.
نماینده به متد OnReviewOperationCompleted محدود می شود، که پس از پایان عملیات فراخوانی می شود.
تابع BindDynamic تضمین می کند که نماینده به درستی به تماس پاسخ داده شده است.
متد RequestReviewFlow(Delegate) فرآیند بررسی را شروع میکند و از نماینده برای رسیدگی به نتیجه عبور میکند.
عملیات بازبینی بهصورت ناهمزمان اجرا میشود و به سایر وظایف در برنامه اجازه میدهد تا زمانی که کامل میشود ادامه پیدا کنند.
پس از پایان عملیات، پاسخ به تماس OnReviewOperationCompleted نتیجه، از جمله موفقیت یا شکست را پردازش می کند.
جریان بررسی درون برنامه ای را راه اندازی کنید
پس از تکمیل عملیات RequestReviewFlow ، می توانید جریان بررسی درون برنامه ای را راه اندازی کنید. این کار با ملزم کردن یک نماینده برای رسیدگی به رویداد تکمیل انجام می شود، و اطمینان حاصل می شود که برنامه به نتیجه (موفقیت یا شکست) درخواست بررسی واکنش نشان می دهد.
voidMyClass::LaunchReviewFlow(){// Create a delegate to bind the callback function.FReviewOperationCompletedDelegateDelegate;// Bind the completion handler (OnReviewOperationCompleted) to the delegate.Delegate.BindDynamic(this,&MyClass::OnReviewOperationCompleted);// Launch the review flow, passing the delegate to handle the result.GetGameInstance()->GetSubsystem<UInAppReviewsManager>()->LaunchReviewFlow(Delegate);}
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Integrate in-app reviews (Unreal Engine)\n\nThis guide describes how to integrate in-app reviews in your app using Unreal\nEngine. There are separate integration guides for if you are using [Kotlin or\nJava](/guide/playcore/in-app-review/kotlin-java), [native code](/guide/playcore/in-app-review/native) or [Unity](/guide/playcore/in-app-review/unity).\n\nUnreal Engine SDK overview\n--------------------------\n\nThe Play In-App Reviews API is part of Play Core SDK family. The API for Unreal\nEngine offers a `UInAppReviewsManager` class to request and launch the flow\nusing the `RequestReviewFlow` and `LaunchReviewFlow` methods. After a request is\nmade, your app can check the status of the request using\n`EInAppReviewErrorCode`.\n\nSupported Unreal Engine versions\n--------------------------------\n\nThe plugin supports **Unreal Engine 5.0** and all subsequent versions.\n\nSet up your development environment\n-----------------------------------\n\n| **Note:** If you have already used the In-app Reviews or In-app Updates plugins in Unreal Engine, you can skip to the final step.\n\n1. Download the [Play Unreal Engine Plugin](https://github.com/google/play-unreal-engine-plugin) from the GitHub\n repository.\n\n2. Copy the `GooglePlay` folder inside your `Plugins` folder in your Unreal\n Engine project.\n\n3. Open your Unreal Engine project and click **Edit → Plugins**.\n\n4. Search for **Google Play** and check the **Enabled** checkbox.\n\n5. Restart the game project and trigger a build.\n\n6. Open your project's `Build.cs` file and add the `PlayInAppReviews` module\n to `PublicDependencyModuleNames`:\n\n using UnrealBuildTool;\n\n public class MyGame : ModuleRules\n {\n public MyGame(ReadOnlyTargetRules Target) : base(Target)\n {\n // ...\n\n PublicDependencyModuleNames.Add(\"PlayInAppReviews\");\n\n // ...\n }\n }\n\nRequest the in-app review flow\n------------------------------\n\nFollow the guidance about [when to request in-app reviews](/guide/playcore/in-app-review#when-to-request) to determine good\npoints in your app's user flow to prompt the user for a review (for example,\nafter a user dismisses the summary screen at the end of a level in a game). When\nyour app gets close one of these points, use the `UInAppReviewsManager` create\nan operation, as shown in the following example:\n\nMyClass.h \n\n void MyClass::OnReviewOperationCompleted(EInAppReviewErrorCode ErrorCode)\n {\n // ...\n }\n\nMyClass.cpp \n\n void MyClass::RequestReviewFlow()\n {\n // Create a delegate to bind the callback function.\n FReviewOperationCompletedDelegate Delegate;\n\n // Bind the completion handler (OnReviewOperationCompleted) to the delegate.\n Delegate.BindDynamic(this, &MyClass::OnReviewOperationCompleted);\n\n // Initiate the review flow, passing the delegate to handle the result.\n GetGameInstance()\n -\u003eGetSubsystem\u003cUInAppReviewsManager\u003e()\n -\u003eRequestReviewFlow(Delegate);\n }\n\n1. The method creates a `FRreviewOperationCompletedDelegate` to handle the\n completion of the review operation.\n\n2. The delegate is bound to the `OnReviewOperationCompleted` method, which will\n be called once the operation finishes.\n\n3. The `BindDynamic` function ensures that the delegate is properly linked to\n the callback.\n\n4. The `RequestReviewFlow(Delegate)` method starts the review process, passing\n the delegate to handle the result.\n\n5. The review operation runs asynchronously, allowing other tasks in the app to\n continue while it completes.\n\n6. Once the operation finishes, the `OnReviewOperationCompleted` callback\n processes the result, including success or failure.\n\nLaunch the in-app review flow\n-----------------------------\n\nOnce the `RequestReviewFlow` operation is complete, you can launch the in-app\nreview flow. This is done by binding a delegate to handle the completion event,\nensuring the app reacts to the outcome (success or failure) of the review\nrequest.\n\nMyClass.h \n\n void MyClass::OnReviewOperationCompleted(EInAppReviewErrorCode ErrorCode)\n {\n // ...\n }\n\nMyClass.cpp \n\n void MyClass::LaunchReviewFlow()\n {\n // Create a delegate to bind the callback function.\n FReviewOperationCompletedDelegate Delegate;\n\n // Bind the completion handler (OnReviewOperationCompleted) to the delegate.\n Delegate.BindDynamic(this, &MyClass::OnReviewOperationCompleted);\n\n // Launch the review flow, passing the delegate to handle the result.\n GetGameInstance()\n -\u003eGetSubsystem\u003cUInAppReviewsManager\u003e()\n -\u003eLaunchReviewFlow(Delegate);\n }\n\nNext steps\n----------\n\n[Test your app's in-app review flow](/guide/playcore/in-app-review/test) to verify that your integration is\nworking correctly."]]