Stay organized with collections
Save and categorize content based on your preferences.
Represents a value returned by an operation, with the associated error code.
Summary
Details |
Template Parameters |
T
|
The type of the value contained in the result.
|
|
Public attributes
|
errorCode
|
The error code returned by the operation that led to this result.
|
value
|
readonly T
The value returned by the operation that led to this result.
|
Public functions
|
Result(ErrorCode errorCode, T result)
|
Create a result with the given value and the associated error code.
|
Public attributes
Public functions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-07-12 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-07-12 UTC."],[],[],null,["# Google.Android.PerformanceTuner.Result Class Reference\n\nGoogle.Android.PerformanceTuner.Result\\\u003c T \\\u003e\n=============================================\n\nRepresents a value returned by an operation, with the associated error code.\n\nSummary\n-------\n\n\u003cbr /\u003e\n\n| Details ||\n|---------------------|-------------------------------------------------------------------------------------------------------------------|\n| Template Parameters | |-----|------------------------------------------------| | `T` | The type of the value contained in the result. | |\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [errorCode](#class_google_1_1_android_1_1_performance_tuner_1_1_result_3_01_t_01_4_1adc368495bdbbf39ad58f269ff8523a31) | `readonly `[ErrorCode](/games/sdk/reference/performance-tuner/unity/namespace/google/android/performance-tuner#namespace_google_1_1_android_1_1_performance_tuner_1a809edd088c3d658512f7a49cf79e16e4) The error code returned by the operation that led to this result. |\n| [value](#class_google_1_1_android_1_1_performance_tuner_1_1_result_3_01_t_01_4_1afece194027fbbe911d1a3eb49150a507) | `readonly T` The value returned by the operation that led to this result. |\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Result](#class_google_1_1_android_1_1_performance_tuner_1_1_result_3_01_t_01_4_1a87029822540e623c40caa2561718d32f)`(`[ErrorCode](/games/sdk/reference/performance-tuner/unity/namespace/google/android/performance-tuner#namespace_google_1_1_android_1_1_performance_tuner_1a809edd088c3d658512f7a49cf79e16e4)` errorCode, T result)` | ` ` ` `Create a result with the given value and the associated error code. ` ` |\n\nPublic attributes\n-----------------\n\n### errorCode\n\n```c#\nreadonly ErrorCode errorCode\n``` \nThe error code returned by the operation that led to this result. \n\n### value\n\n```c#\nreadonly T value\n``` \nThe value returned by the operation that led to this result.\n\nPublic functions\n----------------\n\n### Result\n\n```c#\n Result(\n ErrorCode errorCode,\n T result\n)\n``` \nCreate a result with the given value and the associated error code.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------|\n| Parameters | |-------------|-----------------| | `errorCode` | The error code. | | `result` | The value. | |"]]