Sha256: dd4e536ffbbe64710404ede70f83c523e620a815b9a9793bcf017ebf13b906cb

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

module Calabash
  module Android
    module Orientation
      # @!visibility private
      def _set_orientation_landscape
        Device.default.perform_action('set_activity_orientation', 'landscape')
      end

      # @!visibility private
      def _set_orientation_portrait
        Device.default.perform_action('set_activity_orientation', 'portrait')
      end

      # @!visibility private
      def _portrait?
        _orientation == 'portrait'
      end

      # @!visibility private
      def _landscape?
        _orientation == 'landscape'
      end

      # @!visibility private
      def _orientation
        Device.default.perform_action('get_activity_orientation')['message']
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calabash-1.9.9.pre2 lib/calabash/android/orientation.rb
calabash-1.9.9.pre1 lib/calabash/android/orientation.rb