Class EditsResource.ApksResource
The "apks" collection of methods.
Inheritance
Namespace: Google.Apis.AndroidPublisher.v2
Assembly: Google.Apis.AndroidPublisher.v2.dll
Syntax
public class ApksResource : object
Constructors
ApksResource(IClientService)
Constructs a new resource.
Declaration
public ApksResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Addexternallyhosted(ApksAddExternallyHostedRequest, String, String)
Creates a new APK without uploading the APK itself to Google Play, instead hosting the APK at a specified URL. This function is only available to enterprises using Google Play for Work whose application is configured to restrict distribution to the enterprise domain.
Declaration
public virtual EditsResource.ApksResource.AddexternallyhostedRequest Addexternallyhosted(ApksAddExternallyHostedRequest body, string packageName, string editId)
Parameters
Type | Name | Description |
---|---|---|
ApksAddExternallyHostedRequest | body | The body of the request. |
System.String | packageName | Unique identifier for the Android app that is being updated; for example, "com.spiffygame". |
System.String | editId | Unique identifier for this edit. |
Returns
Type | Description |
---|---|
EditsResource.ApksResource.AddexternallyhostedRequest |
List(String, String)
Declaration
public virtual EditsResource.ApksResource.ListRequest List(string packageName, string editId)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Unique identifier for the Android app that is being updated; for example, "com.spiffygame". |
System.String | editId | Unique identifier for this edit. |
Returns
Type | Description |
---|---|
EditsResource.ApksResource.ListRequest |
Upload(String, String)
Declaration
public virtual EditsResource.ApksResource.UploadRequest Upload(string packageName, string editId)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Unique identifier for the Android app that is being updated; for example, "com.spiffygame". |
System.String | editId | Unique identifier for this edit. |
Returns
Type | Description |
---|---|
EditsResource.ApksResource.UploadRequest |
Upload(String, String, Stream, String)
Declaration
public virtual EditsResource.ApksResource.UploadMediaUpload Upload(string packageName, string editId, Stream stream, string contentType)
Parameters
Type | Name | Description |
---|---|---|
System.String | packageName | Unique identifier for the Android app that is being updated; for example, "com.spiffygame". |
System.String | editId | Unique identifier for this edit. |
System.IO.Stream | stream | The stream to upload. See remarks for further information. |
System.String | contentType | The content type of the stream to upload. |
Returns
Type | Description |
---|---|
EditsResource.ApksResource.UploadMediaUpload |
Remarks
Considerations regarding stream
:
-
If
stream
is seekable, then the stream position will be reset to0
before reading commences. Ifstream
is not seekable, then it will be read from its current position. -
Caller is responsible for maintaining the
stream
open until the upload is completed. -
Caller is responsible for closing the
stream
.